Writing expressions
You can easily insert any Jira field using the dropdown selector
How does it work?
When writing expressions, you can access and check various information available during the transition, for example, the transitioned issue, the project to which the issue belongs, or the user who is executing the transition.
An expression is constructed of one or more comparisons of an issue property with a fixed value.
Issue properties can be Jira fields (written in the form {field_name_or_id}
), or special macros used to access for example the username of the current user (written in the form [macro_name]
). You can then compare these queried properties against fixed values with different comparison operators, like ==
, !=
or >
.
You can combine different expressions with the logical operators AND
and OR
to check multiple expressions. Operations can also be surrounded by parentheses, which allows for more complex expressions.
Please refer to the individual documentation pages for each of the items for more information and examples of how to use them.
Expression Examples
Check that the issue has an assignee:
{Assignee} != ""
Check that the issue type is either Story
or Task
:
{Issue Type} == "Story" OR {Issue Type} == "Task"
Check that all subtasks are in a status of the category Done
(\0133 and \0135 are encoded "[" and "]" as you cannot use them directly in a regular expression):
[subtasks#Status]=/\0133(Done(, Done)*)?\0135/
Check that the user executing the transition is in the project role Developers
:
[role] == /.*Developers.*/