How to create workflow condition or validator that checks status of linked issues?

Syd Heller
Contributor
October 2, 2023

Hi all,

I would like to create a condition or validator (ideally a validator, because I would rather it show an error message than just hide the transition) on an issue that prevents it from transitioning into a particular status unless all linked issues of a certain relationship are in a particular status.

Specifically, we have an issue type "Deployment", which has linking "deploys" to "Tasks". I would like to prevent "Deployments" from moving to "Done" (ie deployed) unless all the linked "deploys" issues are in the state "Ready to Deploy".

I saw a couple of answers here and there, but I am not clear if this is possible today in Jira Cloud.

Any and all help is appreciated!

1 answer

1 accepted

2 votes
Answer accepted
Giovanni Melai
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.
October 2, 2023

Hi @Syd Heller ,

this is not doable out of the box, you need an addon to do it. 

One that I can suggest is Scriptrunner, you need some scripting/development knowledge to use it properly, but there are tons of examples on the web. 

In the documentation there is an example of how to interact with linked issues, you can find it on this page, you just need to scroll down to "Linked Issues".

If you install the addon you will see the option "ScriptRunner Script" while adding a condition or a validator. 

I suggest this addon because it's well known in the Atlassian ecosystem and it's the one I use the most in this kind of cases. Of course, other addons exist to do something similar.

I hope this helps

Syd Heller
Contributor
October 2, 2023

Thank you very much for the detailed reply!

Like Giovanni Melai likes this

Suggest an answer

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

Atlassian Community Events