Forums

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

Automatically update an epic status based on the status of linked epics

Jeanne.Schiller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 9, 2022

Objective: If an epic is blocked by other epics, when all the blocking epics are moved to done then the main epic should automatically be moved to done. 

Problem:
I am able to achieve this with child issues of an epic but NOT when epics are linked to each other.

2 answers

0 votes
Bharathi
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.
August 9, 2022

Hi @Jeanne.Schiller

Similar to how you accomplished the 1st scenario, you can do this as well by listing out the possible issue linking relationships and checking the status of linked issues.

Thanks!

0 votes
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.
August 9, 2022

Hi @Jeanne.Schiller  -- Welcome to the Atlassian Community

You could use JQL functions to find the linked epics, loading them into a Lookup Issues action, and then use smart value list filtering to find if they are all done.  Here are the relevant links for those features:

Kind regards,
Bill

Jeanne.Schiller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 10, 2022

more details this is the function I'm using.

It works when the blocking epics are in the same project.  BUT when blocking issues are in another project the status updates of those external epics won't trigger the change of the epic status to Done.  

If all external blocking epics are set to done and an internal blocking epic is marked as done last everything works perfectly.  But if the last epic to transition to done is not in the same project it won't trigger the status change on the blocked epic.
Screen Shot 2022-08-10 at 10.20.41 AM.png

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.
August 10, 2022

First thing: you appear to need a global/multi-project scope rule and you also appear to be on a Standard, Jira Cloud license.  That means each triggering of this rule counts against your monthly limits.  Take head that however you build your rule it does not exceed the limits, and so stop rule processing.  For example, if you do not need this rule to transition the epic to done immediately, consider using a scheduled trigger instead, perhaps once per day.  That may be very relevant as your current rule could theoretically trigger itself...based on processing performance.

Next...The way your rule is written, the Issue Transition action is inside of the branch on the linked issues.  As a result, the trigger issue will never be changed; only the linked ones will.  This is why I suggested using the Lookup Issues with smart value, list filtering.  For example.

  • trigger: issue transitioned
  • condition: issue type is epic
  • action: lookup issues, with JQL to find all linked issues with blocking which are also epics
  • advanced compare condition: using smart value list filtering on the lookup issues result, determine if all of the linked epics are done
  • action: transition the trigger issue to done

Please see the documentation links I provided earlier for more details on Lookup Issues and Smart Value, List Filtering.

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