Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Script Runner Validator to check if the issue is linked with a Specific link type.

Ganesh Kumar Vary
March 26, 2023

Hi all,

I have a requirement where a User Story should be moved to next transition only if it is linked to another User Story with link type Addresses.

I have used a simple one-line Script: issue.links.length >0 in the Script runner Validator which is restricting the transition when there is no linked issue. But I couldn't find a way to include the link type in the validator. please see the SS attached for more detail.

Script Validator.png

 

Can anyone suggest me a syntax so that I can include the link type also here?

 

3 answers

1 vote
Thomas Schlegel
Community Champion
May 16, 2018

Hi @James Minahan,

check the workflow's create transition for a condition that checks the parent's status. That might be the problem.

1 vote
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 Champions.
May 16, 2018

You have an add-on which is configured to block sub-task creation in certain states.  It's giving you a validator on the "create issue" transition for the sub-tasks, if I have understood the description of the behaviour in your question correctly.

You'll need to get your admins to reconfigure or remove it.

James Minahan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 16, 2018

Thank you @Nic Brough -Adaptavist-! I found the validator and was able to fix the issue. Really appreciate everyone's help!

0 votes
Alexey Matveev
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 Champions.
May 16, 2018

Hello,

I guess you have an add-on installed which gives you the message. You should figure out what the add-on is.

Suggest an answer

Log in or Sign up to answer