The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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 • # people like this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events