Forums

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

Automation not working as intented

Niklas Zarnecke
Contributor
May 12, 2025

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:

ifcondition.png

I even logged the information about the status of the parent and trigger:

statuslog.png

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

1 answer

1 vote
Trudy Claspill
Community Champion
May 12, 2025

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.

Niklas Zarnecke
Contributor
May 12, 2025

@Trudy Claspill Sure thing!

Here are the two screenshots:

fullauditlog.pngfullautomationrule.png

Jaime Escribano
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2025

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!

Niklas Zarnecke
Contributor
May 13, 2025

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

Jaime Escribano
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2025

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.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events