Forums

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

Automation to update Parent Epic from Child work items

Rich Allen
Contributor
June 27, 2025

Hi all,

I know there are an array of different solutions to this question but I can't get a working version, wondering if there are Smart Value deprecations taking place.

Scenario

When an Epic child work item has a Start or Due Date entered or updated, the automation updates the parent Epic with the earliest Start date and/or latest Due date from amongst the child work items, which may exists across multiple Sprints.

WHEN Due Date field update

IF Parent Exists 

--> Branch - FOR Parent IF Parent is Epic

THEN Edit Work Item - Set Due Date using Smart Value

Current Outcome

When I test my trigger it flows and identifies the Epic correctly, I have verified this by adding labels using the 'Additional Fields' section.

Current Problem

The Smart Values I'm using are not finding the Start Date and Due Date to do the update.

I have tried existing solutions below, but with no success


Due Date = {{issue.children.sprint.endDate.max.jiraDate}}

Due Date - {{issue.children.sprint.last.endDate.jiraDate}}

Due Date - {{lookupissues.dueDate.max.jiraDate}}

Due Date - {{lookupissues.sprint.max.endDate.jiraDate}}

Due Date - {{lookupissues.sprint.endDate.jiraDate}}

What concerns me is that neither of these sets of properties exist in the Smart Values Automation reference.

Automation smart values - issues | Cloud automation Cloud | Atlassian Support

Thanks in advance, look forward to putting this issue in the rear view :-)

Rich

2 answers

1 vote
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.
June 27, 2025

Hi @Rich Allen 

As you note, this is a commonly asked question and the solution approach depends upon what version of Jira you are using: Cloud, Server, or Data Center.

For Jira Cloud, use the Lookup Work Items / Issues action with JQL to gather the child items, and then use the min and max list functions to get the dates needed.

For Server or Data Center, the lookup does not support those fields yet.  A workaround is to use the REST API to gather the child items and then use the list functions on the web response.  That approach is described here:

https://community.atlassian.com/forums/Jira-articles/How-Can-I-Sum-Up-Multiple-Issues-into-a-Parent-Number-Field/ba-p/2882712#M16701

Kind regards,
Bill

0 votes
Alexander Hohmann
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.
June 27, 2025

Have you tried with "issue.duedate" instead?

Alexander Hohmann
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.
June 27, 2025
Rich Allen
Contributor
June 27, 2025

Thanks Alexander, a useful link for sure.
My scenario isn't solely setting dates, I have already implemented similar. 

I need to look through ALL child items of an Epic when one of them has a Due Date updated, and pull out the latest Due Date, whether that is the child item being updated or not and update the parent Epic Due Date

Suggest an answer

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

Atlassian Community Events