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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events