Documentation for JIRA 4.3. Documentation for other versions of JIRA is available too.

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.

(tick)

(tick)

(tick)

issue

com.atlassian.jira.issue.Issue object. Pretty much everything about the issue.

(tick)

(tick)

(tick)

fieldLayoutItem

com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem. Is field required? hidden?

(tick)

(error)

(error)

action

Calling action.

(tick)

(error)

(error)

displayParameters

Custom parameters to the template, such as whether to display headers or not

(tick)

(error)

(error)

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

(tick)

(tick)

(tick)

customFieldParams

This is where the value is pulled from, for convenience

(tick)

(tick)

(tick)

config

com.atlassian.jira.issue.customfields.config.CustomFieldConfig object.

(tick)

(error)

(error)

configs

The various configuration items for that context. This include things like, default values, select list options and other configurable options

(tick)

(error)

(error)

i18n

com.atlassian.jira.web.bean.I18nBean for your internationalisation needs

(tick)

(tick)

(tick)

descriptor

The module descriptor of the current field

(tick)

(tick)

(tick)

textutils

com.opensymphony.util.TextUtils for text manipulation needs

(tick)

(tick)

(tick)

outlookdate

com.atlassian.jira.web.util.OutlookDate for formatting dates, JIRA style

(tick)

(tick)

(tick)

authcontext

com.atlassian.jira.security.JiraAuthenticationContext for authentication information

(tick)

(tick)

(tick)

dateutils

com.atlassian.core.util.DateUtils more date functions

(tick)

(tick)

(tick)

req

HttpServletRequest object.

(tick)

(tick)

(tick)

baseurl

The getContextPath of the req object

(tick)

(tick)

(tick)

constantsManager

The com.atlassian.jira.config.ConstantsManager object for managing "constants" (issue types, resolutions etc.)

(tick)

(tick)

(tick)

projectManager

com.atlassian.jira.project.ProjectManager

(tick)

(tick)

(tick)

applicationProperties

com.atlassian.jira.config.properties.ApplicationProperties

(tick)

(tick)

(tick)

jirautils

com.atlassian.jira.util.JiraUtils a random set of methods. has isPublic method

(tick)

(tick)

(tick)

jirakeyutils

com.atlassian.jira.util.JiraKeyUtils an object used for parsing keys

(tick)

(tick)

(tick)

buildutils

com.atlassian.jira.util.BuildUtils has information on build numbers, editions etc.

(tick)

(tick)

(tick)

velocityhelper

com.atlassian.jira.util.JiraVelocityHelper random set of utility methods

(tick)

(tick)

(tick)

userutils

com.atlassian.core.user.UserUtils untility for getting users

(tick)

(tick)

(tick)

+ Other velocity parameters from the custom field type

  • No labels