How to compare a field form all issues data to a field?

Issue #451 resolved
Sahil Gulhane created an issue

Current situation- In our jira we use a filed called "Voucher code" which is connected via api to an internal app. This field is a free text field.

Problem- We want jira to verify if the value entered by the user in this filed during a transition if the value is unique between issues based on a JQL querry. so for example user cannot enter a voucher code which is already used in jira in the same project.

Can you please tell me if and how i can do this?

Comments (2)

  1. Fidel Castro Armario repo owner

    Hi Sahil,

    You should insert "Validation based on JQL query" in your transition with the following configuration:

    Captura de pantalla 2016-12-02 a las 11.49.17.png

    JQL Query is:

    project = "%{00018}" AND "Voucher code" ~ "%{nnnnn}"
    

    Boolean expression is:

    {00058} = 0
    

    Note that:

    • %{nnnnn} should be replaced with field code for "Voucher code" custom field.
    • %{00018} is field code for Project key.
    • {00058} is code for numeric value of field Ephemeral number 1.
  2. Log in to comment