This validator is used for blocking a transition depending on the result of a JQL query


Configuration

Enter a JQL query using the JQL mode of the expression editor. The current issue will be matched against the result set of the query.

It is very common to use field codes inside the JQL query.



Define how the issue should be compared against the result set of the JQL query. You have the following options:

OptionDescription

Current issue belongs to the output of the query

The condition is passed, if the current issue is part of the result set of the JQL query.

Current issue doesn't belong to the output of the query

The condition is passed, if the current issue is not part of the result set of the JQL query.

Number of issues returned by the JQL query satisfies a logical expression

Define a logical expression in Logical mode which must return true or false.

The number of issues returned by the query is stored in the Temporary number field 1. This is why this value is automatically added to your logical expression.


Example for a logical expression

JQL queryExpressionDescription


project = %{issue.project.key} and type = Bug and resolution is empty



{issue.temporaryNumber1} < 5


The validator will pass, if there are less than 5 unresolved Bugs in the current issue's project.






If you want to use this functionality in a condition instead, have a look at the following condition: Condition based on JQL query



Use cases and examples





Status
Tech review

Style guide



Short descriptionValidate the current issue against the result of a JQL query.
Label




Mapped(error)
Notes

Currently, this validation option is not available on JWT Cloud, only in server.