Forums

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

How to validate a condition that parent of a trigger issue has all open child issues

Srujan Kumar February 16, 2024

I have a requirement as to build an automation which can help the users to transition the issue when condition is TRUE as below.

Condition: When the first child issue is moved to In Progress the parent Epic will be moved to In Progress. This happens only once.

If a issue has been transitioned to "In Progress" status, we have to validate that parent of the trigger issue has all open issues. Trigger issue is the first child transitioned to "In Progress", then in such cases parent issue should be transitioned to "In Progress". This should work only for the first time and in other cases parent will have child issue in "In Progress" status which doesn't satisfy the condition and then automation should not take any action.

In the same way there is another condition for other automation as below.

Condition: When the last child issue is moved to a terminal state the parent Epic will be moved to the same terminal state. This happens each time “the last” child is moved.

If a child issue has been transitioned to any closed status, automation has to be triggered and it has to validate that parent of a trigger issue has multiple child issues in which trigger issue is the last issue transitioned to closed status. This defines that all the child issues have been closed but parent is open. So, automation has to help in a way that parent will be closed when last child issue is transitioned to closed status.

 

Thank you in advance.

--Srujan

 

1 answer

0 votes
Valerie Knapp
Community Champion
February 16, 2024

Hi @Srujan Kumar , thanks for your question.

I think this rule from the Automation Playground might be of help to you - https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/115381 

Please test modifying this instead of issue type being an Epic, but the child issues, and then the branching would be on the parents instead of 'stories of'.

I hope this helps but if you are stuck, please write us here and either I or someone else will try to help.

Cheers

Suggest an answer

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

Atlassian Community Events