Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,469
Community Members
 
Community Events
184
Community Groups

Automation: Transition Epic in tandem with child issues

Hi! I am looking for the automation steps for this ask above:

 

Further context:

  • Epic and Tasks have different workflows
  • I'd like for the Epic to transition to In progress when issues are moved to in progress (if there are multiple issues linked, then the automation should be triggered when the first chld issue is moved to in progress)
  • I'd like for the epic to transition to "completed" when ALL child issues have been completed

Thank you!

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 12, 2023

If you go to Project settings > Automation and look under Library there is a rule called "When all stories are completed → then close epic" that you can use as a starting point, just change the statuses to fit both of your use cases.

Screenshot 2023-04-12 at 7.56.54 AM.png

Hi @Mikael Sandberg thank you so much! I am having an issue with the in-progress part of this now? It is rejecting my JQL. Could you take a look?Screen Shot 2023-04-12 at 12.07.58 PM.pngScreen Shot 2023-04-12 at 12.08.06 PM.pngScreen Shot 2023-04-12 at 12.08.19 PM.png

@Mikael Sandberg I actually just tried this and it didn't trigger anything for my epic. I am not sure what I did wrong as I copied the rule exactly. In the audit log it says "no actions performed"

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 12, 2023

Your JQL is missing status = "In progress", using just = "In progress" is not a valid JQL.

When you did the test, did you move a story/task to completed or an epic?

Ahh, sorry not familiar with JQL. TY!

 

For the test -- I created an epic and linked task issue 

 

Since there are two work flows (one for epic and one for task) -- I moved the task issue to completed. 

 

The epic remained in "back log" after moving the child issue @Mikael Sandberg 

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 12, 2023

Okay, so try this. On the initial trigger component try and change the status it triggers on, I have noticed that if you use a rule from the library you have to change the default settings for the automation to trigger correctly. 

I wasn't able to locate the rule for some reason, so I built it out using the screenshot you initially provided. Do you think this still applies/is creating the issue? @Mikael Sandberg 

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 12, 2023

No, if you create it from scratch you should be good. If you still have an issue with the trigger not running and the audit log is saying "no actions performed" then you should start there. You could add a log action after the initial trigger to see if it gets to that component.

@Mikael Sandberg  I just watched this video: https://www.youtube.com/watch?v=Y5u_i9z06zg

 

And it seems like the way its set up is doing the inverse? I.e when epic is moved to completed, it moves all child issues to completed? Vs ,  I want to epic to move to completed when all child issues are done?

 

The one epic is dependent on all child issues to be complete

Child issues must all equal = completed before the epic can move to completed

Since the child issues all happen at different times, some could be completed before others, but again -- the epic should not move to the complete status until all child issues are done.

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 12, 2023

The example I posted above should only transition the epic if all stories/tasks in it are in the done/completed status, that is what the second condition in the epic branch is checking, the "And: Stories (or other issues in this Epic)" part.

The video that you found is indeed showing the inverse when the epic is moved to done then move all children too.

@Mikael Sandberg I deleted and re-did the rule and it finally worked. Thank you for your help!

 

What I need help with now (promise I am almost done) --

For the epic workflow there is only three statuses: backlog, in progress, completed. We have now finished the automation for syncing with completed.

For the task work flow there is the following in-progress statuses:

* In-progress

* Edits needed

* ready for review

I'd like for the Epic task to recognize that if it's child issues are in one of these statuses, it should remain in "in progress" on its own workflow. I've attached what I tried to do, but it didn't work. Additionally, I think I may need or statements for JQL but am unsure how to do that? please let me know if my thinking is correct, or if I need to make updates.

 

thank you again for your patience/help

Like Mikael Sandberg likes this
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 12, 2023

Something like this should do the trick:

Screenshot 2023-04-12 at 10.55.32 AM.png

In this case I have added a condition to only look for Stories or Tasks that are transitioning, and then transition the epic only if it is on the To Do status. Because you want to move the epic when the first story/task is transitioned there is not need to check that stories/tasks within the epic is in a specific status.

For you I would just add the other statuses that you have for stories/tasks to the initial trigger, assuming that you can move to any of them from any of the other statuses.

@Mikael Sandberg Screenshot of audit log since it is saying no actions performedScreen Shot 2023-04-12 at 2.09.12 PM.png

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 12, 2023

On the Epic branch, change the condition that checks the status, because the way you have it configured right now the epic would have to be status = In Progress in order to transition it to In Progress.

It works!!!! Thank you so much!!! Seriously appreciate your help,

Like Mikael Sandberg likes this

Suggest an answer

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

Atlassian Community Events