This page last changed on Aug 19, 2010 by mdoar.

Below is a list of available objects in the Velocity context for custom fields.

Object Description edit view col-view
customField com.atlassian.jira.issue.fields.CustomField object. Information on the current field.
issue com.atlassian.jira.issue.Issue object. Pretty much everything about the issue.
fieldLayoutItem com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem. Is field required? hidden?
action Calling action.
displayParameters Custom parameters to the template, such as whether to display headers or not
value String value of the custom field. Thus this is a String for Date and other single valued fields, List of Strings for Multi selects and CustomFieldParams full of Strings for Cascading selects
customFieldParams This is where the value is pulled from, for convenience
config com.atlassian.jira.issue.customfields.config.CustomFieldConfig object.
configs The various configuration items for that context. This include things like, default values, select list options and other configurable options
i18n com.atlassian.jira.web.bean.I18nBean for your internationalisation needs
descriptor The module descriptor of the current field
textutils com.opensymphony.util.TextUtils for text manipulation needs
outlookdate com.atlassian.jira.web.util.OutlookDate for formatting dates, JIRA style
authcontext com.atlassian.jira.security.JiraAuthenticationContext for authentication information
dateutils com.atlassian.core.util.DateUtils more date functions
req HttpServletRequest object.
baseurl The getContextPath of the req object
constantsManager The com.atlassian.jira.config.ConstantsManager object for managing "constants" (issue types, resolutions etc.)
projectManager com.atlassian.jira.project.ProjectManager
applicationProperties com.atlassian.jira.config.properties.ApplicationProperties
jirautils com.atlassian.jira.util.JiraUtils a random set of methods. has isPublic method
jirakeyutils com.atlassian.jira.util.JiraKeyUtils an object used for parsing keys
buildutils com.atlassian.jira.util.BuildUtils has information on build numbers, editions etc.
velocityhelper com.atlassian.jira.util.JiraVelocityHelper random set of utility methods
userutils com.atlassian.core.user.UserUtils untility for getting users

+ Other velocity parameters from the custom field type

Document generated by Confluence on Mar 27, 2011 18:52