Forums

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

I want to create an automation rule for closing Epic. But facing issues in it.

Jayanth
Contributor
September 29, 2024

I want to close Epic when all its issues are in Done status. I want the rule to be like this: 
1.  All sub-tasks must be transitioned to Done → Transition the parent story to Done.

2.  All stories must be transitioned to Done → Transition the epic to Done.

For this, I can able to achieve the first one but not able to achieve the second.

I want these conditions to come under one rule.epic close pic.png

I want to know what is the issue in it.

Thanks

1 answer

1 accepted

3 votes
Answer accepted
Bill Sheboy
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.
September 29, 2024

Hi @Jayanth 

That may not be possible in one rule.  The reason is there could be timing / delay issues caused by transitioning the parent Story.  Given the possibility of workflow or additional rule interaction, the event will not happen instantaneously.

I recommend creating a second rule for detecting the Story transition and then transitioning the parent Epic.  In this rule, enable this option in the rule details "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule."

 

If you still want to take a chance that there will be no timing problems with a single rule, your second branch on parent should change to a branch on JQL, with key = {{triggerIssue.parent.parent.key}} and that branch should be preceded by a check to confirm the smart value is not empty.

 

Kind regards,
Bill

Jayanth
Contributor
September 29, 2024

I created a new rule, and it works fine now.
Thanks @Bill Sheboy 

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events