API for Velocity Context Objects
Velocity Context offers many objects for templates. Find the list of variables with explanations here: Customizable Email Templates#VelocityContextforTemplates.
Below is the detailed description of object attributes. You can render the attributes in the templates in the format of $!variable.attribute
User
Attribute Name
Type
Description
String
Internal key of the user it is unique to the users.
String
Loginname of the user
String
Email address of the user
String
Display name of the user
boolean
true if the user account is active in Jira
String
URLs to user avatars in different sizes.
Issue
Attributes
Attribute Name
Type
Description
id
number
Internal ID of the issue
key
String
Unique Issue Key
summary
String
Issue summary
creator
Creator of the issue. The Creater may be different from the Reporter as privileged users may create issues on behalf of others.
Methods
Signature
Return type
Parameters
Description
Example
getCustomFieldValue(customFieldKey)
customFieldKey: key of the custom field
Returns a API for Velocity Context Objects#CustomFieldValue object representing the value of the custom field addressed by the key
$!issue.getCustomFieldValue('customfield_10116')
IssueEvent
Attribute Name
Type
Description
eventType
The type of the triggered event.(eg. issue created, issue commented, ...)
timestamp
Date
The time when the issue was triggered
user
The user who triggered the event (added the comment, updated the issue, ...)
Comment
Attribute Name
Type
Description
id
Number
Internal ID of the comment
limitedVisibility
boolean
internalServiceDeskComment
boolean
publicServiceDeskComment
boolean
Changelog
Attribute Name
Type
Description
ChangelogItem
Attribute Name
Type
Description
created
field
fieldId
fieldType
from
fromString
to
toString
Worklog
Attribute Name
Type
Description
issueId
long
Id of the issue
timeSpent
String
timeSpentSeconds
long
visibilityType
String
visibilityValue
String
EmailCommand
Attribute Name
Type
Description
Template Support
Attribute Name
Type
Description
boolean
Returns true if the given user is an agent on the project, otherwise false.
Project
Attribute Name
Type
Description
IssueType
Status
Priority
Resolution
Timetracking
Attachment
Component
Version
CustomFieldValue
Attribute Name
Type
Description
renderedValue
String
The value in html as visible in Jira
value
T
Contains the raw value of the field.
Type is the type of declared in Jira. One of
Date
String
User
Collection<User>
CustomField
Attribute Name
Type
Description
String
key of the custom field. This is the primary identifier used by Email This Issue. (eg. in macro parameters)
The format is customfield_$id.
itemType
String
type
String
FieldValue<T>
Attribute Name
Type
Description
rawValue
T
Contains the raw value of the field.
Type is the type of declared in Jira. One of
Date
String
User
Collection<User>
renderedValue
String
The value in html as visible in Jira
Last updated