Forums

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

Given a list of Epics (via JQL Query) how can I iterate over the children of each Epic?

Gregory Hill
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!
April 11, 2022

I have a situation where I have a daily process that needs to iterate over a set of Epics and for each Epic, iterate over its children to calculate custom fields values that are stored on the Epic.  I'm trying to use Jira Automation in Cloud.  My rule starts out with a "For JQL" branch that returns a list of Epics, but from there I can't figure out how to iterate over each Epic to perform calculations based on the Epic's children:

 

Screen Shot 2022-04-11 at 7.28.54 AM.png

Any help would be appreciated,

 

Greg

 

1 answer

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.
April 11, 2022

Hi @Gregory Hill 

First thing, this is possible and subject to your number of epics, perhaps a bad idea.  The following is based upon Jira Cloud and would not work for Jira Server/Data Center version.

What is possible:

The bad idea parts:

  • You are limited to up to 100 issues for branches, lookup issues, scheduled triggers, etc. so if you have more than that another solution is needed
  • Branches are slow and branching over many epics and then their child items seems like the rule may run for a long time.  This could both exceed your SLA limits for rule execution and fail to run as a result

If your list of epics is small, and they each have less than 100 issues, perhaps try this to see how the rule performs.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events