Forums

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

Prevent a status from changing to "Blocked" if there's no "Is Blocked By" Linked Issue

Neta Knyazhansky Caspy
Contributor
November 20, 2023

Hello,

I'm trying to created a validator that will check that a Bug has a "Is blocked By" linked issue, in order to change the status to "Blocked".

I have ScriptRunner & JMWE.

Thanks!

1 answer

1 accepted

2 votes
Answer accepted
David Fischer
Community Champion
November 20, 2023

Hi @Neta Knyazhansky Caspy 

you can create a JMWE Build-your-own Validator with this Jira expression:

issue.links && issue.links.some(il => il.type.name == "Blocks" && il.direction == "inward")
Neta Knyazhansky Caspy
Contributor
November 20, 2023

@David Fischer Thank you! It's working perfectly :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events