Skip to main content
Skip table of contents

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:

CODE
{Assignee} != ""

Check that the issue type is either Story or Task:

CODE
{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):

CODE
[subtasks#Status]=/\0133(Done(, Done)*)?\0135/

Check that the user executing the transition is in the project role Developers:

CODE
[role] == /.*Developers.*/

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.