API for Velocity Context Objects - 1.7
Velocity Context offers many objects for templates. Find the list of variables with explanations here: Customizable Email Templates.
Below is the detailed description of object attributes. You can render the attributes in the templates in the format of $!variable.attribute
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. |
Attribute Name | Type | Description |
id | number | Internal ID of the issue |
key | String | Unique Issue Key |
summary | String | Issue summary |
description | FieldValue<String> | Issue Description field with raw value and rendered format |
environment | FieldValue<String> | Issue Environment field with raw value and rendered format |
project | Project | Project of the issue |
issueType | IssueType | Type of the issue |
status | Status | Issue status |
resolution | Resolution | Resolution of the issue |
priority | Priority | Priority of the issue |
timetracking | Timetracking | Timetracking details of the issue |
creator | User | Creator of the issue. The Creater may be different from the Reporter as privileged users may create issues on behalf of others. |
reporter | User | The user set as Reporter in the issue. |
assignee | User | Current assignee. |
created | FieldValue<Date> | Issue Created date field value with raw value and rendered format. |
updated | FieldValue<Date> | Issue Updated date field value with raw value and rendered format. |
resolutionDate | FieldValue<Date> | Issue Resolution date field value with raw value and rendered format. |
dueDate | FieldValue<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> | |
Signature | Return type | Parameters | Description | Example |
getCustomFieldValue(customFieldKey) | CustomFieldValue |
| Returns a API for Velocity Context Objects - CustomFieldValue object representing the value of the custom field addressed by the key | $!issue.getCustomFieldValue('customfield_10116') |
Attribute Name | Type | Description |
eventType |