How to change the the Parent Epic status according to its issues?

Anil Kumar July 12, 2022

I want epic statuses to be updated automatically reflecting the status of its children issues.so there will be no need for manual updates of issues that do not appear as cards on the boards. 

I tried the above attached rule and it is success but I could not find any changes in my Epic parent.

1.When all the tasks are move to "TEST" then epic status move to "Test"
2. When all the task moves to Closed with resolution "Done"  then epic status move to "Done"
3. When the first task is moved to "Inprogress" or "Test"  or closed with resolution done, the epic status move to inprogress.

I tried the following automation rule but it is not working for Epic Parent.
When: Issue transitioned
For : Epic( Parent)

  • Condition: Related Issues Condition
    • Related Issues: Sub-tasks
    • Condition: All match specified JQL
    • JQL: status = Done
  • Condition: Issue Fields Condition
    • Field: Status
    • Condition: does not equal
    • Value: Done
  • Action: Transition issue - Done

    Appreciate your help

 

1 answer

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 12, 2022

Hi Anil,

One rule will look like the below. Basically you need to use a Branch. Change the statuses so they lined up with yours, and as well as the issue types. 

Screenshot.png

Anil Kumar July 12, 2022

Hi John,

Thank you for your reply,

My requirement is to do with Epic (Parent).

Epic status has to change based on the child issue status

Like Marcel Necula likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 13, 2022

Did you try to create the rule using your requirements?

Anil Kumar July 13, 2022

Hi @John Funk 

By following your example, I would like to create the below rule.but it is not working.


Details:- I want epic status to be updated automatically reflecting the status of epic children issues.
1.When the first task is moved from open to todo , then epic status move to "TODO"

2. When all the tasks are move to close then epic move to closed and epic status move to Done

  • Branch 1: For EPIC Parent
    • Condition: Related Issues Condition
      • Related Issues: Epic
      • Condition: All match specified JQL
      • JQL: status = todo 
    • Condition: Issue Fields Condition
      • Field: Status
      • Condition: does not equal
      • Value: todo
    • Action: Transition issue - TODO


    • Branch 1: For EPIC Parent
      • Condition: Related Issues Condition
        • Related Issues: Epic
        • Condition: All match specified JQL
        • JQL: status = CLOSE
      • Condition: Issue Fields Condition
        • Field: Status
        • Condition: does not equal
        • Value: CLOSE
      • Action: Transition issue - CLOSE
        please suggest

 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 13, 2022

Can you show a screen shot of your rule? 

And what is not working? 

Is it not firing? It fires but gives and error? Or it fires, and no error, but it does not do what you expect it to do?

Neta Knyazhansky Caspy October 15, 2022

Hi @John Funk

I was looking for a way to create a similar automation when I came across this question and your answer, I'd appreciate your help.

I'm trying to automate an Epic status change when only one on the child issues have changed.
For example, I have a Story which is a child issue of an Epic, when the Story changes to "In Progress" so will the Epic Status.

I tried to follow the rule you suggested with some adjustments, when I test it, it didn't work.
Any suggestions?

 

Here is the rule:
Capture.PNG

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 16, 2022

Hi @Neta Knyazhansky Caspy 

@What didn’t work? Was there an error? Did it run with no results?

Can you please share the audit log for the rule when you run it?

Neta Knyazhansky Caspy October 17, 2022

Hi @John Funk

I think it ran with no results, here is the audit log:

Capture.PNG

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 18, 2022

Can you click on the Show more and post that? 

Neta Knyazhansky Caspy October 18, 2022

Sure

Capture.PNG

Neta Knyazhansky Caspy October 18, 2022

@John Funk Please note I changed the rule as I saw it wasn't exactly as I meant, change the Status = Completed to Status = In Progress.

Capture.PNG

Still ran with no results:

Capture1.PNG

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 18, 2022

The initial trigger does not provide for moving to In Progress from Completed. You might have added to the Condition, but the initial trigger also needs updating. 

Neta Knyazhansky Caspy October 19, 2022

The initial trigger if for moving to In Progress from Draft, Backlog, Ready For Dev.
Am I missing something?

Capture.PNG

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 26, 2022

Can you share a screenshot of the issue itself?

Neta Knyazhansky Caspy October 27, 2022

@John Funk I solved it and it's working now, I'll add a screenshot of the rule, for documentation.
Thank you so much for your help, I appreciate it!

Capture.PNG

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2022

Great! Glad it's working for you now!

Darline Spring January 18, 2024

01/18/24

Hi,  I'm inquiring on this post because this issue came up for me today.

Can Jira automatically change the epic status to "Work in Progress" when a child User Story or Tech Story status has moved to something other than "Backlog? 

Is manually or with a rule the only way to automatically update the epic status?

Thanks in advance for your reply,

Darline

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 18, 2024

Hi Darline - yes it can. It would be best if you created a new question so more people will see it and help. Please be as specific as you can in the post. 

Like Darline Spring likes this

Suggest an answer

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

Atlassian Community Events