JQL validator
Description
The JQL validator 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.
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 validator passes if the current user is 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}.
Optional error message
You can define a custom error message for JSU validators to provide a clear explanation of the situation to your users. If you leave this field empty, a default error message is displayed for validation errors.
See also
Need support? Create a request with our support team.
