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,579
Community Members
 
Community Events
185
Community Groups

Update date Epic from child issues

Hi, I have created a rule to update date Epic from child issues, but how to do it for already set dates - check now the dates and update? I can't manage to make the syntax; this below doesn't work: Capture.JPG

1 answer

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 14, 2022

Hi Diana,

You wouldn't need to use the lookupIssues function. 

Create a Scheduled trigger rule. Add JQL to get your list of issues. 

Then do your advanced compare above.

Next, add your New Action for Edit issue to update the field you want to change. 

Save and Publish all of that. 

Then click the Run Rule Now button for it to run through all of the issues. 

You might want to test first by using a single issue in your JQL - something like key=ABC-123. If that's successful, then modify your JQL to get the first list of issues. 

One it runs successfully and updates all of the issues, you probably want to disable the rule so that it doesn't fire everyday. 

Hi John,

The advanced compare is what I can't manage - {{lookupIssues.Target End Date.max}} doesn't work; can you propose syntax that I can use to filter tickets within Epic?

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 14, 2022

Sorry, yes - just replace the lookupIssues. with issue.

It's not working; ({{TriggerIssue.Target End Date}}) is also not working as there is no trigger - I need to execute check for all tickets as they are now.

Also tried {{child.issue.Target End Date.max}} - not working.

Any idea of other syntax?

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 15, 2022

Can you share the entire rule? 

Yes, sure; schedule is simple - tickets not Done, Cancelled or Rejected, every 2hours and:

1.JPG2.JPG

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 16, 2022

What is the relationship between the parent and children - is it Epics and children? Or Story and sub-tasks? 

There are tickets Story & Task within the Epic

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 16, 2022

Try using {{issue.Target End Date.max}} for the top value

and {{issue.parent.Target End Date}} for the second value. 

It didn't work; tickets didn't march the rule.

I think even with previous syntax is could work, but due to the fact that there is no trigger as it's a scheduled change, no change will happen:

ex.PNG

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 16, 2022

Yeah, that's the issue with Scheduled. You might try doing the scheduled rule, and set a value on the Epic. Then do your trigger based on that field changing on the Epic. Then maybe you could use Trigger Issue. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events