$customHeader
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 18 Next »

Context variables (as mentioned in Jira expressions official documentation) are available depending on the context in which the Jira expression is evaluated. JMWE makes the issue, transition and user variables available to Jira expressions.

On this page:

customerRequest variable

The customerRequest variable is used to insert data from the current customer request. Only applies when the current issue is a Jira Service Desk customer request. Returns null otherwise.

For example:

customerRequest.issue.key == issue.key

serviceDesk variable

The serviceDesk variable provides information about the Service Desk to which the current customer request belongs. Only applies when the current issue is a Jira Service Desk customer request. Returns null otherwise.

For example:

serviceDesk.id == 9

issue variable

The issue variable is used to insert data of the issue being transitioned. You can access the issue data (fields) either by

  • looking up at its properties and methods that are displayed under the "Data Types" tab of the Jira expressions editor when you insert (click on the variable) the issue variable into the editor or
  • selecting the field you wish to access from the "Issue Fields" tab of the Groovy expression editor 

For example:

issue.labels returns an array of label values, e.g. [ "Blue","Red" ]

issue.reporter.displayName returns the display Name of the reporter, e.g. Carter

transition variable

The transition variable is used to insert information of the transition being executed. You can access the transition information under "Current Transition" section in the "Global Variables" tab of the Jira expressions editor. Click on a button to insert the expression into the editor. You can also find the properties and methods of the transition variable from the "Data Types" tab by selecting "Transition" under "Select a Data type".

For example:

transition.name returns the name of the current transition, e.g. Start Progress

transition.hasScreen indicates whether there is a screen configured for this transition

user variable

The user variable is used to insert information about the current user, i.e. the user triggering the transition. You can access the current user information under "Current User" section in the "Global Variables" tab of the Jira expressions editor. Click on a button to insert the expression into the editor. You can also find the properties and methods of the user variable from the "Data Types" tab by selecting "User" under "Select a Data type".

For example:

user.accountId returns the accountId of the user triggering the transition, e.g. accountId:5ca5b1469a000c1180956957. 


  • No labels