Forums

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

Automatically change issue status when all blockers are Closed

Edward August 22, 2019

Hello guys

I am trying to setup a trigger to an issue that changes its status from "To Do" to "in Progress" when all the blocker issues to that one are marked as Concluded.

I've read many treads regarding triggers, but couldn't find a solution.

 

Thanks!

2 answers

1 accepted

1 vote
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 26, 2019

Hello Edward,

Unfortunately, JIRA does not have the functionality to update an issue status based on the status of linked issues.

Triggers in JIRA workflows are basically designed to trigger transitions based on external commits like bamboo builds and Bitbucket branches.

That being said, you can use some plugins to achieve this functionality. Here are some options:

1 - Scriptrunner

You can use a groovy Script to properly transition your issue based on the status of linked issues. Check an example on the link below:

Simple JIRA Groovy Service to CLOSE issues depending on the STATUS of the links and subtasks

2 - Automation for JIRA:

If you are not very familiar with coding, Automation for JIRA allow you to achieve your need in an intuitive way, by configuring automation rules without needing to develop any code:

Screen Shot 2019-08-26 at 11.49.42.png 

P.S: Just make sure your server has the resources to properly run the suggestion above without any performance issues.

Let me know if this information helps.

Edward August 28, 2019

Thanks for the info. 

We were able to implement it with automation. 

Thank you very much for the support.

 

If anyone wants to implement it, follow the query used.

 

status in (Open, Reopened, "To Do") AND issue in linkedIssuesHasStatus (Closed,blocks) AND issue not in linkedIssuesHasStatus("In Progress",blocks) AND issue not in linkedIssuesHasStatus(Open,blocks) AND issue not in linkedIssuesHasStatus("To Do",blocks) AND issue not in linkedIssuesHasStatus(Reopened,blocks) AND issue not in linkedIssuesHasStatus("On Hold",blocks) AND issue not in linkedIssuesHasStatus(Homologation,blocks)

Like Deleted user likes this
Deleted user May 9, 2020

ciao @PET  ciao @Edward  

I found this discussion because I'm looking for a solution to a similar problem. I'll explain. I have this structure: issuetype Project that can have one or more issuetype Sub-Project connected with the relationship "is project of" (if I look at the issue Sub-Project) or is "under project of" if I look at the parent issue, say, that Project that has one or more sub-projects linked precisely.

 

Schermata 2020-05-09 alle 08.12.34.pngSchermata 2020-05-09 alle 08.17.28.pngI want to use automation so that every time a status change event is captured to "done" I check if the issue that has changed is a sub-project issue and then I want to go back to its parent issue, the project issue, and then check if all the sub-project issues related to the project issue are in done status.

I hope I was able to explain clearly. I can't build this query with automation for Jira and JQL (p.s. if needed I also have Script Runner, but I can use it less well than automation for Jira).

Schermata 2020-05-09 alle 09.24.09.png

0 votes
Oleksii Dziapko
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 28, 2024

There is another way to solve this problem:
Screenshot 2024-10-28 150257.png

Gabor Renczes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 26, 2025

Hello, I tried this way to solve my problem, but in case I had the type of issue "Bug" or "Story" the automation do not run. When I have an issue type of "Task" it works perfectly, I'm new with jira so do not know what should I change. 

I'm using jira for project management in my Company, we have made all of our project types in Template.app, it generates the projects with predefined users and blocks for the whole project for all of the issues. On the start every issue is in To Do status and slowly as we do the issues they are moving to the done status, this is just a small explanation of our use case. 

Thank you every answer I appreciate it. 

Suggest an answer

Log in or Sign up to answer