Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Validate a text field prevent duplicate ticket with a custom field value

Andrey Miranda Diaz July 6, 2021

Good morning,

I would to know if is possible to create a validation about a custom field (text field).

For example :

I need to create with scripts runner a validation that if the custom field (ID)  the value exist in another ticket of the project show a messaje (the ID already exist in issue).

or if the ID no exist create the ticket . 


Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 6, 2021

I think I want to question the need for this.  I can't imagine a good case for "prevent someone creating an issue if they have mentioned an existing issue in the text of it".  Quite the opposite - I have *definitely* raised issues saying stuff like "this is a bit like xyz-123, but it's slightly different because..."

Could you explain the use case?


But to get started though, the pseudo-code you should have a quick think about for this would be:

Andrey Miranda Diaz July 6, 2021

Thanks for you response,

I have completed the request .



WAJDI ALZINATI November 14, 2021


Can you assist me with the code used and how is the setup done.



Andrey Miranda Diaz December 22, 2022

HI @WAJDI ALZINATI  I used a Behaviour with a mapping and then put the script of the example and change by my custom field




Log in or Sign up to comment
AUG Leaders

Atlassian Community Events