Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,231
Community Members
 
Community Events
168
Community Groups

Condition to change the status based on linked issue closure

Hi,

I need to setup a condition to change the status only if my linked issue is closed.

Please help me with the available option.

 

Thank You!

1 answer

1 vote

Hello @shravya chinthapatla 

If I understand correctly, you want to trigger something when a linked issue is closed. For instance, notify the assignee of the original issue.

If this is the case, then please take a look at automations.

Trigger the automation to when an issue is transitioned. In your case, to Closed

Then add a new Branch / Linked issue condition, you can specify which kind of linked issues should be targeted, or you can set it on all linked issues.

Add an action component to do the thing you want the automation to do. In my case, I wanted to comment on the original issue with the status update of the linked (accessible with {{triggerissue}} ) issue. 

This is how my automation looks like:

Screen Shot 2022-09-23 at 08.18.41.png

 

Please let me know if you if this is what you are looking for. If not, please elaborate on your desired outcome.

Hi @Paul Wiggers 

Thank You for the response!

Let me elaborate the requirement, I have a parent issue and a linked issue and i need to set up a condition/validation to change the status of my parent issue only if my linked issue is completed.

Please let me know if there is any such option in JIRA?

 

Thank You!

Hi @shravya chinthapatla 

This type of conditions and validators is not available in original Jira. 

You should achive this requiement with JMWE add-on.

In JMWE add-on we have a related issues condition, this condition fulfil your requirement.

Cheers!!

@shravya chinthapatla 

I am sure the suggestion of @Shaik Rafi will work but I do believe it is possible using the build in Automation.

From what I understand, you have a 1 on 1 relation. Meaning that there is only one linked issue. If that issue is set to done, the linked issues should also be set to done.

Here is what I would use, please give it a shot and see if this will do what you want it to:

Screen Shot 2022-09-23 at 13.32.37.png

If you do have multiple linked issues, then you need to add an additional check to make sure that it only transitions when everything is closed. Something like this should do the trick in that case:

Screen Shot 2022-09-23 at 13.36.26.png

Good luck with setting it up. Feel free to reach out if you have any more question. In the mean time, are you familiar with Atlassian's Automation Playground? There are some great automation examples available. It is worth taking a look, and of course, play around!

Atlassian Automation Playground - Have fun!

Suggest an answer

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

Atlassian Community Events