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 . 

4 answers

0 votes
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

thanks

Regards

0 votes
WAJDI ALZINATI November 14, 2021

Hi, 

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

 

Thanks

0 votes
Andrey Miranda Diaz July 6, 2021

Thanks for you response,

I have completed the request .

 

regards

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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:

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events