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

How to - scriptrunner that adds a condition on a certain type of link, and a certain resolution

arama mihai
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.
May 2, 2018

Hello,

We would need to add a validator that does the following: if the resolution is 'duplicate', then it should be mandatory that a linked issue with the 'duplicate' link type exists already or is added during the transition .

I found the example for making it mandatory during the transition (https://scriptrunner.adaptavist.com/latest/jira/recipes/workflow/validators/validate-attachments-links-in-transition.html#_validating_links_added_this_transition), but how can I make it check for already existing links also?

Thank you very much!

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
arama mihai
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.
May 3, 2018
TAGS
AUG Leaders

Atlassian Community Events