Hey!
We need a automation to move the parent to the trigger issue status if all subtasks are in the same status.
For that I built (more like copied lol) a automation from the forum here and for me the automation makes perfect sense.
But for some reason, one if condition is not working: If the parent already has the right status, don't do anything. Here is the IF condition:
I even logged the information about the status of the parent and trigger:
For me, the condition should not pass since both have the same status. After that the branch failed because the work item could not be moved.
Is there something wrong with my automation?
Best
Niklas
Hello @Niklas Zarnecke
To debug the automation we need to see the entire automation rule. Please provide images showing the entire rule.
Also please provide screen images showing the entire audit log output with all sections expanded.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikklas!
The problem here is that your PARENT status cannot transition to the status of your sub-tasks.
That may be becouse your parent issue is not at the status you expected or becouse there is a condition that is not satisfied :)
I could recommend adding an "all status can transition" to your desired status and adding a condition saying "only actors in this list can transition" - Set the actor to Automation for Jira.
Finally, look at the last "transition item" action.
Your logic is "If the parent issue has the same status as the sub-task, transition the parent to the same status as the sub-task".
So, for example, you would transition from "Done" to "Done", and i guess that transition does not exist.
Is it possible that you wanted it to be "if the parent status is not the same as the sub-task"?
Greetings!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jaime,
Is it possible that you wanted it to be "if the parent status is not the same as the sub-task"?
Indeed that's what I'm looking for, could you provide me a hint what I have to change in my automation to achieve that?
Best
Niklas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niklas.
I apologize for the confusion! I read your automation wrong.
The logic you are actually using is "If the status from the parent is not the same as the sub-task and those sub-tasks all match the status of the sub-task that triggered the issue".
So I would go back to my first idea: The transition you are trying to make for the parent is not possible. As a rule of thumb, if you can't make a transition through UI, yor probably can't do it via automation.
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.