Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,643
Community Members
 
Community Events
185
Community Groups

AUTOMATION - Epic Target Date based on Child Created Date

Bryce Remington
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!
Apr 20, 2023

Hello,

I am trying to create an automation that will allow me to look at all linked child User Stories of an Epic and then set the "Target start" (custom field for portfolio) of the Epic based on the earliest created date of the User Stories.

Example:

Target start = Blank (Epic)

Epic Child Issues:
User Story - Created 4/19/2023
User Story - Created 4/18/2023

I want the ability to set the Target start of the Epic to = 4/18/2023 - which is the earliest create date of a child user story under it. 

 

I created a flow that does the following:

1. WHEN: Trigger when item is updated

2. IF: Issue Type = Epic

3. AND: Compare two values

{{#if(equals(issue.customfield_10115,null))}}TRUE{{/}}

EQUALS

TRUE

4. THEN: Edit Issue Field
{
"fields": {
"customfield_10115": "{{issue.subtasks.created.toDate("yyyy-MM-dd").min}}"
}
}

 

But I get an error each time that says:

Error editing issues
xxxx-8484 (Unparseable date: "" (customfield_10115))
So I figured I am setting something up incorrectly. 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events