Cloud Migration Resources
Planning a Jira Cloud migration? These resources can help you get started:
→ JSU Cloud features – Review Cloud features and understand key differences between DC and Cloud.
→ Migration support from Appfire – Learn how we can help you migrate smoothly.
JQL condition
The JQL condition is available in our Data Center app only. If you are using JSU on Jira Cloud, see our JSU Cloud documentation.
Description
The JQL condition compares the number of issues returned from the JQL query against predefined conditions such as:
Must find at least one issue
Must not find any issue
Compare with a particular number
Configuration
Write your required JQL expression and choose one option for the number of issues found. For example, Number of issues must > 2.
For more information on how conditions work in Jira, see Atlassian’s Advanced Workflow Configuration documentation.
JQL-based validators and conditions on the Create transition
When a validator or condition that uses JQL is configured on the Create transition (initial state transition), the work item has not yet been created in Jira. As a result, the item key does not exist at validation time.
Because of this, JQL expressions that rely on {issue.key} (for example, key = {issue.key}) cannot be evaluated and may block item creation.
To use {issue.key} in a JQL expression, configure the validator or condition on a transition that occurs after the work item has been created.
Examples
Is the Issue in the current sprint?
Sprint in openSprints() AND key = {issue.key}In the IT department, only the approver can perform the transition
approver = currentUser() OR component != "IT department"The condition is valid if the current user is the user in the Approver field OR anything not belonging to the IT department.
All other siblings must have status
parent = {issue.parent} AND key != {issue.key} AND status in (Resolved, Closed)With parent = {issue.parent} we find all siblings of the current subtask. However, we want to exclude the current subtasks, so we add key != {issue.key}.
See also
Need support? Create a request with our support team.
