Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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

VariableDescription
{{user.name }}returns the full name. Example Rickard Atthem
{{user.key }}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

VariableDescription
{{issue.summary }}returns the issue summary
{{issue.key}}returns the issue key
{{issue.type }}returns issue type
{{issue.assignee }}returns the assignee. See User above for chained mehod invocations. Ie. {{issue.assignee.key }}
{{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

VariableDescription
{{now}returns the full name. Example Rickard Atthem
  • No labels