Velocity Context offers many objects for templates. Find the list of variables with explanations here: Customizable Email Templates#VelocityContextforTemplates.
...
Attribute Name | Type | Description |
---|---|---|
userKey | String | Internal key of the user it is unique to the users. |
username | String | Loginname of the user |
email | String | Email address of the user |
displayName | String | Display name of the user |
active | boolean | true if the user account is active in Jira |
avatar24 avatar32 avatar48 | 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 | ||
comments | ||
attachments | ||
components | ||
fixVersions | ||
affectsVersions | ||
labels | Collection<String> |
Methods
Signature | Return type | Parameters | Description | Example |
---|---|---|---|---|
getCustomFieldValue(customFieldKey) | CustomFieldValue |
| Returns a 67403779 object representing the value of the custom field addressed by the key | $!issue.getCustomFieldValue('customfield_10116') |
...
Attribute Name | Type | Description |
---|---|---|
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 Name | Type | Description |
---|
...