Forums

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

Conditionally change custom date field in a parent epic based on the child story date field

Keith Pieper
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 16, 2023

I have a custom date field "Start Date" and "End Date" for Epics and Stories. Stories get dates assigned manually and change occasionally. Epics do not typically get a date manually assigned.

I want the parent epic to inherit the "Start Date" and "End Date" of the child story when the story date fields are changed, but only change

  • the parent Epic start date if the child story start date is less than the existing parent start date (OR it's empty)
  • the parent Epic end date if the child story end date is greater than the existing parent end date (OR it's empty)

I've built an automation that appears to work but will not properly populate the date. I suspect I am using the wrong field syntax to pull the correct date field from the child issue that triggered the automation?

Screenshot 2023-08-16 231340.png

2.png

3.png

4.png

5.png

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 17, 2023

Hello @Keith Pieper 

Welcome to the Atlassian community.

Have you tried using "from Epic" instead of "from Parent" in the condition?

I also find it a bit odd that the log says the trigger issue didn't match the second condition, but it still continued processing the rule. Did you show us all the steps in the rule?

For setting the End Date field in the Epic you would need to use this:

{{triggerIssue.End Date}}

If they are both Date Picker fields, you don't need to add any formatting.

Alternately use the COPY option (instead of SET) and opt to copy the value from the Trigger issue.

Screen Shot 2023-08-17 at 9.45.58 AM.png Screen Shot 2023-08-17 at 9.46.09 AM.png

Keith Pieper
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 17, 2023

Works perfect. Thanks for the help.

Like Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, loom, AI, meeting recording, community

[NEW] Record your meetings with Loom

Welcome to great meetings, with less work. Automatically record, summarize, and share instant recaps of your meetings with Loom AI.

Learn more
AUG Leaders

Atlassian Community Events