Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Velocity Context offers many objects for templates. Find the list of variables with explanations here: Customizable Email Templates#VelocityContextforTemplates.

...

Attribute NameTypeDescription
userKey

String

Internal key of the user it is unique to the users.
username
StringLoginname of the user
email
StringEmail address of the user

displayName
StringDisplay name of the user
active
booleantrue if the user account is active in Jira
avatar24
avatar32
avatar48
StringURLs to user avatars in different sizes.

...

Attribute NameTypeDescription
idnumberInternal ID of the issue
keyStringUnique Issue Key
summaryStringIssue summary
descriptionFieldValue<String>Issue Description field with raw value and rendered format
environmentFieldValue<String>Issue Environment field with raw value and rendered format
projectProjectProject of the issue
issueTypeIssueTypeType of the issue
statusStatusIssue status
resolutionResolutionResolution of the issue
priorityPriorityPriority of the issue
timetrackingTimetrackingTimetracking details of the issue
creatorUserCreator of the issue. The Creater may be different from the Reporter as privileged users may create issues on behalf of others.
reporterUserThe user set as Reporter in the issue.
assigneeUserCurrent assignee.
createdFieldValue<Date>Issue Created date field value with raw value and rendered format.
updatedFieldValue<Date>Issue Updated date field value with raw value and rendered format.
resolutionDateFieldValue<Date>Issue Resolution date field value with raw value and rendered format.
dueDateFieldValue<Date>Issue Due Date field value with raw value and rendered format.
customFields

Collection<CustomFieldValue>


comments

Collection<Comment>


attachments

Collection<Attachment>


components

Collection<Component>


fixVersions

Collection<Version>


affectsVersions

Collection<Version>


labels

Collection<String>


Methods

SignatureReturn typeParametersDescriptionExample
getCustomFieldValue(customFieldKey)CustomFieldValue
  • customFieldKey: key of the custom field
Returns a 67403779 object representing the value of the custom field addressed by the key$!issue.getCustomFieldValue('customfield_10116')

...

Attribute NameTypeDescription
isAgent($!currentUser, $!issue.project)
isAgent($!currentUser, $!issue.projectObject)
boolean

Returns true if the given user is an agent on the project, otherwise false.

Project

Attribute NameTypeDescription

...