🚀 JWT 3.0 is out 🚀 

The app was completely overhauled, and so was the documentation: Jira Workflow Toolbox (Server/Data Center) Home

The page you are viewing is still valid for all app versions prior to 3.0.

On this page


Example: Prevent issue creation if another issue with same field value already exists

We want to prevent issue creation when there is already another issue in the project with the same value in a certain field. That field works as a kind of alternative issue key in the project.  You can easily extend this example to much more complex cases, like preventing coincidence of values in more than one field at the same time, or in more than one project, all projects in a category, or in all the projects in Jira.

Let's suppose that we have a Text custom field called Invoice, and we want to avoid this field's value to be repeated among issues of same issue type in same project, i.e., we don't want to have two issues with same issue type, in same project and same value in field Invoice.

We are going to introduce a validator Validation based on JQL query in transition "Create Issue" with the following configuration:



JQL Query: project = "%{00018}" AND issuetype = "%{00014}" AND Invoice = "%{10200}"


Note that:

  • %{00018} is the field code for Project key
  • %{00014} is the field code for Issue key
  • %{10200} is the field code for custom field Invoice. This field code depends on each particular Jira instance


Once configured, transition “Create Issue” will look like this:


Alternative implementation

There is an alternative implementation based on validator Boolean condition and validator with math. date-time or text-string terms. The following configuration should be used:




Boolean expression is: count(issuesFromJQL("project = '" + %{00018} + "' AND issuetype = '" + %{00014} + "' AND Invoice = '" + %{10200} + "'")) = 0


Note that:

  • %{00018} is the field code for Project key
  • %{00014} is the field code for Issue key
  • %{10200} is the field code for custom field Invoice. This field code depends on each particular Jira instance


Once configured, transition “Create Issue” will look like this:



Other examples of that function

Condition and validation based on JQL query


Boolean condition and validator with math. date-time or text-string terms

Related Usage Examples