I would like to make it so that when a task has a Waiting status and all tasks that block it are resolved, then that status would automatically turn to In Progress
I've put together an example for you on how you achieve this.
@Alexander Pappert was pretty close with his example.
You start with an Issue Transitioned trigger and choose the resolved status as the To status. In my example project, this is "Done".
We then branch onto the issues it is linked to. In particular, I've chosen the type "blocks", so we'll only branch on issues that the resolved ticket blocks.
Next, we don't know if there are other issues also blocking this one or not, so we can't just transition it. However, we're now in the context of that issue, so we do a check on it.
In this case, we use the Related Issues condition.
We chose linked issues and the type "is blocked by" to find all the blocking issues, not just the one that triggered the rule. We then include JQL to ensure that all of them are resolved, as in the example above. If that is passed then we can transition our issue.
Hopefully that helps.
Cheers,
Simeon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All! How to create Automation rule : When certain sub-tasks(not all) are done → move parent to Done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bohdan Lozinskyi ,
How do you determine the certain sub tasks?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For example, when only half of those used in this project sab-tasks have reached the desired status, in this case, the parent ticket needs to be transferred to the next status, no matter what status the other half of the subtasks are in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you can express the condition in JQL then you can use the above approach with the related issues condition using either all match or some match on your JQL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use script addons like
you can build rules here
https://docs.automationforjira.com/rule-playground/index.html#/
your blocked tasks are issue links?
then you could use a rule like this
when the link changes to done, then it changes his links to status done
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.