Forums

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

Automation: Email that groups work items by Parent/Epic

Erin Lee October 1, 2025

I'm going crazy trying to get an automation working. What I'd like to do is send ONE email that includes details for each Parent/Epic currently Open or In Progress, along with details for the Child tasks under each Parent.

Between Lookup actions, creating variables, and so on I feel like I've tried everything. And because of Jira's limitations with using variables outside of branches I keep running into the same issue, but I feel like I'm so close and there HAS to be a way to do this, right?


Ideally, the sections in the email would look like this for each Parent, with each issue key being linked to the issue:

ABC-001 Parent Epic One

ABC-002 Child Issue One, In Progress

ABC-003 Child Issue Two, Blocked

ABC-004 Child Issue Three, Open

ABC-005 Parent Epic Two

ABC-006 Child Issue One, Blocked

ABC-007 Child Issue Two, Blocked

etc, etc.


Here's the automation that got me the closest. In this one, the steps for creating the {{epicBlock}} variable would be completed, but then the automation would just stop after. No error codes in the audit log either. Up to that step, all the variables and lookups function as I expect them to. The advanced branching/rule group setup was only one of my many attempts to find a work-around, so if they're not necessary let me know.

Screenshot 2025-09-26 at 2.02.34 PM.pngScreenshot 2025-09-26 at 2.02.54 PM.pngScreenshot 2025-09-26 at 2.03.20 PM.pngScreenshot 2025-09-26 at 2.03.36 PM.png

 

1 answer

1 accepted

0 votes
Answer accepted
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.
October 1, 2025

Hi @Erin Lee 

Short answer: I do not believe there is a simple, generic way to do this with the format you show with an unknown list of Epics.  There are some workarounds, such as with an HTML table, although that will repeat the Epic information.

For example, if the lookup only found the work items with an Epic parent, ordering the results by the Epic's summary and then the child Keys:

project = myProject
AND parent IS NOT EMPTY
AND issuetype IN (Story, Task, Bug)
ORDER BY Parent ASC, Key ASC

The rows could be (with no HTML formatting added)

{{#lookupIssues}}
{{parent.key}} -- {{parent.summary}} : {{key}} -- {{summary}}
{{/}}

Unfortunately, this will repeat the parent Epic information for each row, and they will sort by the Parent's summary rather than by the key.

There might be another way to do this with dynamic list creation, but I will need to ponder that a bit.

 

Kind regards,
Bill

Erin Lee October 6, 2025

Hi Bill!

Thanks for your response. Have you had a chance to look into the dynamic list creation you mentioned?

The lookup action will work for now, it's just not formatted as nicely as I wish it was.

-Erin

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.
October 6, 2025

Hi @Erin Lee 

Yes, I did look at that again...the dynamic list-filtering approach is needed for several other problem scenarios I wanted to solve.  However, it still does not work.  (The reason is there is a defect with long-format, list iterators where many functions can only "see" the first record, and so filtering over the second, third, etc. is not possible.)

For now, you could try the iteration approach I described and add HTML formatting to create a table.

Erin Lee October 6, 2025

Thanks for trying!

Do you happen to have a link to a resource I could reference for the HTML table formatting?

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.
October 6, 2025

I recommend doing a quick internet search for some basic HTML guides to get started.  And, check for the email tools your recipients will use to ensure you do not use any table markup which is not supported.

 

You may also review this example in a knowledgebase article to add an HTML table for a work item.  The change for your scenario is to add the iteration of the lookup results to add each data row.

https://support.atlassian.com/automation/kb/creating-a-table-structure-in-jira-automation-rules/

Erin Lee October 9, 2025

Much obliged! 

Like Bill Sheboy likes this

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