Forums

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

Automation: Branch "For Epic (parent)" isn't executing actions

Deleted user April 28, 2022

In a system-managed "next-gen" project (Classic projects are unavailable in my instance), I am unable to get the "For Epic (parent)" branch component to work properly.

I have some epic, FOO-1. Within it, there is a single issue, FOO-2 with an Epic Link back to FOO-1.

FOO-1 is currently "Open", and has a valid transition path to "Closed".

Transitioning FOO-2 to Closed should be closing FOO-1, as it is the only issue in the epic and has a status of "Closed" -- however, this does not occur. In testing (adding actions for commenting, email under the branch), it appears that the "For Epic (parent)" branch condition is not functioning correctly. There is not an error in the audit log; there is simply a status for runs of "No Actions Performed".

Is anyone else experiencing this, and have you found any workarounds? I found a few issues that seem to indicate that the Epic Link is implemented differently as of a few years ago, but I haven't found any concrete issue that indicates this is a known bug.

20220427T011320178.png

3 answers

1 accepted

1 vote
Answer accepted
Deleted user April 29, 2022

This has auto-resolved, magically, without any sort of configuration changes at either the rule, project, or system level. This leads me to believe that there was some sort of backend issue with our instance that has been resolved.

0 votes
Garrett McCreery
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.
April 28, 2022

You could try using branch rule "For JQL" and then use the JQL query listed. 

screenshot.png

Deleted user April 28, 2022

That function is only available to Jira Premium accounts, which we do not have at the moment.

Garrett McCreery
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.
April 28, 2022

How about this:

get the parent (which is the epic):

screenshot1.png

Then use the JQL branch method:

screenshot2.png

0 votes
Jack Brickey
Community Champion
April 28, 2022

Hi @[deleted] , welcome to the Community. First I wanted to clarify that in TMP (next-gen) there is not an Epic link that is unique to CMP (classic). That aside, could you share the audit log here?

Deleted user April 28, 2022

I'm not sure what new information the Audit Log would provide. Unless there's something I'm not seeing, all it contains is the issue that triggered it, and then a status of "No Actions Performed".

Jack Brickey
Community Champion
April 28, 2022

Hmmm, it doesn't provide a reason?

Jack Brickey
Community Champion
April 28, 2022

@[deleted] , FWIW I replicated your rule and tested it successfully in my instance. I had a test epic with two stories. I closed the first story and verified that the rule exited on the condition that all associated stories were done. I then transitioned the second story to done and the epic was transition to done by the automation rule. 

One thing to note is that my audit log indeed provided the necessary information. So there's something odd if your audit log is not giving a clue. At least it seems that way on the surface. The thing I'm most interested in is which step in the rule does the automation exit on?

Deleted user April 28, 2022

It fails because no issues match the "For Epic (parent)" branch condition.

Deleted user April 28, 2022

20220428T121344714.png

Jack Brickey
Community Champion
April 28, 2022

maybe try to setup a new test ?

  1. create an epic
  2. create two children under the epic
  3. close one and inspect audit log
  4. close the second story and inspect audit log
Deleted user April 29, 2022

Yep, I did that before opening this issue and things worked just fine.

 

This has now been resolved, because the rules have started working, magically. No configuration changes were made at either the rule, project, or system level. This leads me to make the assumption that something was happening with the backend that has now been resolved.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events