We are using velocity as template engine and have exposed the following classes:
- current issue
- issue manager
- project manager
- current project
- current user
- user manager
General usage note
Use $ sign to access the object, then use dot notation to access its variables.
User object
Use $user
Variable | Description |
---|---|
{{user.name }} | returns the full name. Example Rickard Atthem |
{{user.username}} | returns the username. Example ratthem |
{{user.email }} | returns the email. Example rickard@rixter.se |
{{user.active }} | returns true or false depending on if the user is active or not in JIRA |
Issue object
Variable | Description |
---|---|
{{issue.summary }} | returns the issue summary |
{{issue .key}} | returns the issue key |
{{issue .type }} | returns issue type |
{{issue .assignee }} | returns the assignee |
{{issue .reporter }} | returns the reporter |
{{issue .watchers }} | returns a list of watchers such as: ["user1","user2"] |
{{issue .affectsversion }} | returns the assignee |
{{issue .fixversion }} | returns the assignee |
{{issue .components }} | returns the assignee |
{{issue .labels }} | returns the assignee |
{{issue .resolution }} | returns the assignee |
{{issue .attachments }} | returns the assignee |
{{issue .comments }} | returns the assignee |
{{issue .worklog }} | returns the assignee |
{{issue .votes }} | returns the assignee |
{{issue .due }} | returns the issue due date |
{{issue .description }} | returns issue description |
{{issue .priority }} | returns the priority of the issue |
{{issue .created }} | returns the created date of the issue |
{{issue .updated }} | returns the updated date of the issue |
{{issue .status }} | returns the status of the issue |
{{issue. customfield_xxxxx }} | returns the value of the custom field. example {{issue. customfield_10000 }} |
Current date/time
Variable | Description |
---|---|
{{now} | returns the full name. Example Rickard Atthem |