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!
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:
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.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
I 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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is another way to solve this problem:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.