Why the parent issue isn't find in my automation rule ?

Raphaël NORYNBERG
Contributor
October 17, 2024

Hi everyone,

So basically my case is the following, I want to transition parent issues when all their childs meet a certain status.

I made an automation rule that triggers whenever a subtask do a precise transition, then a branch "For: Parent", I added some conditions then the action "Transition".

But when the rule triggers, it says this :

 

Branch rule / related issues
No related issues could be found.
I don't get why... when I search with JQL the parent issue of my subtask is found
image.png
Could someone help me to understand and make this works ?
Thanks in advance

3 answers

1 accepted

3 votes
Answer accepted
Sarp Egemen
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.
October 17, 2024

Hi @Raphaël NORYNBERG 

I replicated your automation in my environment, and it works.

I will break down your automation into steps so you may find something you didn't intend to do.

--------

First, your rule will only run for an issue that transitions from "en cours de dev" to "documentation à rédiger."

(Let's say we have an issue named "my issue" that undergoes the transition mentioned above.)

First of all, this issue must have a parent for the rest of the rule to execute. Therefore, this issue must be of either task level or sub-task level.

(Let's assume there is an epic called "my epic" that has "my issue" as a child.)

Then, the rule checks the parent of "my issue" which in this case is "my epic," and runs the conditional on that epic.

If "my epic" has a type of "Use Case" and a status of "En attente composant," then it looks for the second condition.

If "my epic" has subtasks, and all of those subtasks are of type "Composant" and are in any of the statuses "Rejeté", "Documents à rédiger" or "Traité"

Then "my epic" gets transitioned to "à prioriser."

 

Raphaël NORYNBERG
Contributor
October 18, 2024

Hi @Sarp Egemen thanks for your reply,

In my case the issue that triggers the rule is a "sub-task level" and it has a "task level" parent (which does appears like this in JQL search).

And yes I have double checked that conditions are met.

0 votes
Raphaël NORYNBERG
Contributor
October 18, 2024

@Sarp Egemen  @Tobias H Sorry I was obviously tired yesterday, it all works fine, I have mistaken with an old issue type ("Use case" wasn't my type it was "Use cases" ...)

Tobias H
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.
October 18, 2024

Oh such a simple mistake to make, great that you found it once you had gotten some sleep in! :D

Sarp Egemen
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.
October 18, 2024

It happens to all of us. ✌🏻 Glad you figured it out. 

For me, especially when I get stuck on a problem and feel overwhelmed, taking a break and then returning to it really helps me see things I've missed. 

0 votes
Tobias H
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.
October 17, 2024

Hi @Raphaël NORYNBERG

Just to get some more info, is there only one subtask attached to the parent? As the "related issues" component checks all subtasks for their status and type.

Also, have you tried adding a re-fetch after the trigger? That might give the automation enough time to find that the parent's subtask actually has transitioned.

Tobias H
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.
October 17, 2024

I just copied your automation (and added an if statement for which project)

And it ran just fine, so I'm also a bit perplexed now 😅


Screenshot 2024-10-17 223208.png

Raphaël NORYNBERG
Contributor
October 18, 2024

Hi @Tobias H , thanks for your reply,

I'm going to try that re-fetch after trigger thanks.

And yes there is multiple subtasks but they all meet the status conditions.

Suggest an answer

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

Atlassian Community Events