Condition

Condition examples

Some of the vocabularies are not supported in the cloud version.

Issue

Check if the issue is assigned

the assignee is present

Check if the string field matches a simple pattern

the key of the issue starts withs "TEST-"
the summary of the issue contains "Production"

Check if the string field matches a like pattern

the summary of the issue is like "%Awesome%"

Check if the string field matches a regex pattern

the key of the issue matches "^[a-zA-Z]{2}[-][0-9]+"

Check the status is “To Do“ or “In Progress“

the status of the issue is "To Do" 
or the status of the issue is "In Progress"

Check if the priority of the issue is one of the specific values

the priority of the issue is one of [ "Major", "Critical"]

Check if the fix version contains 1.1.x version

the fix version of the issue is like "%v1.1._%"

Check if the estimate is more than a specific value

the original estimate of the issue is more than 100

Check if the due date is before/after a specific date

the due date of the issus is after 2019-11-30
and the due date of the issue is before 2019-12-31

Check if the due date is after a relative date

the due date of the issus is before today + 2 weeks

Parent issue

Check if the parent issue exists or not

the parent issue is present 

Check the fields of the parent issue

the summary of the parent issue is "parent"
or the status of the parent issue is "Fixed"

Subtask

Check if the issue is a subtask

the issue is subtask

Check if the issue has subtask

the issue has subtask

Check if all subtasks are done

all of the subtasks match (the status of this subtask is "Done")

Check if no subtask has label of “notforsubtask“

none of the subtasks match (the labels of this subtask contains "notforsubtask")

Check if any subtask has priority of “Critical“

any of the subtasks match (the priority of this subtask is "Critical")

Linked issue

Check if all blocking issues are done

all of the issues linked with "blocks" match (the status of this linked issue is "Done")

Check if any blocked issue has priority of “Major“

any of the issues linked with "is blocked by" match (the priority of this linked issue is "Major")

Check if no blocked issue has label of “production“

none of the issues linked with "is blocked by" match (the labels of this linked issue contains "production")

User

Get the assignee/creator/reporter of the current issue

the assignee
the creator
the reporter

Check the username of the assignee

the name of the assignee is "admin"

Check the full name of the creator

the display name of the creator is "John Johnson"

Check if the assignee belongs to a specific group

the assignee is in group named "Jira-administrators"

Check if the assignee has a specific project role

the assignee has role named "tester"

Project

the name of the project is "Test Project"

Misc

Check both the priority and affect version

the priority of the issue is "High"
and
the affect version of the issue contains "v1"

Prevent the parent issue from being closed when there is still open subtask

any of the subtasks match (the status of this subtask is not "Done")

The condition expression could be a bit complex depending on the business logic. Pay attention to the precedence when there are multiple logical operators and use parenthesis properly.

the assignee is not present and the priority of the issue is "Major"
or 
(the labels of the issue contains "production"
  and the affected versions of the issue contains "version-3.0")
or
any of the subtasks match 
(the status of the subtask is "To Do" and the priority of the subtask is "Critical")
Last modified May 18, 2020