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,556,996
Community Members
 
Community Events
184
Community Groups

Automation rule to update parent issue due date to the latest due date in subtasks?

Hello! I am trying to achieve a rule that will update the Parent Issue due date, to the latest due date of any subtask created.

 

Being the noob that I am, I tried the following:

688.png

 

I managed to Pick a date and make it be the Parent Issue due date if the subtask date changes and is later than the Parent Issue due date, however, I am having trouble making the subtask due date become the Parent Issue due date.

 

Any help would be greatly appreciated!

 

2 answers

1 accepted

2 votes
Answer accepted
Gareth Cantrell
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.
Nov 16, 2021 • edited

Hi @Mariano 

In branch rules, the {{issue}} smart value refers to the issue that the branch is executing on, in your case, the parent issue.

To refer to the issue that triggered the rule when inside a branch rule, use {{triggerIssue}} instead.

In short, your condition should be: {{issue.duedate}} is less than {{triggerIssue.duedate}}

Similarly, in the Edit issue action, use {{triggerIssue.duedate}} to set the parent issue field.

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.
Nov 16, 2021

Hi @Mariano 

Yes, and...to what Gareth and Fabian suggest:

Does this ever happen...How do you want to handle the case when all sub-tasks' due dates have changed such that they are now all *earlier* than the before?  (And so the Parent is later than the actual set of children.)

One way to address this for sub-tasks is to use the list functions instead, finding the max() value of the due dates for any sibling sub-tasks, and set the parent to it.

https://support.atlassian.com/jira-software-cloud/docs/smart-values-lists/#Smartvalueslists-list.max

Kind regards,
Bill

Like # people like this

Thanks @Gareth Cantrell and @Bill Sheboy ! I will look into this as it seems the most sensible path to take. 

@Bill Sheboy YES, I haven't thought about it. Thanks for pointing out to the right direction! I always admire people who forsee things, and I try to learn as much as I can from them (and you!)

I will read certainly read about these functions on my lunch break, thanks again! 

Like Bill Sheboy likes this

Thank you @Bill Sheboy , it worked perfectly!!

Like Bill Sheboy likes this
1 vote
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 16, 2021 • edited

Hi @Mariano

Try using the "create variable action" and put the {{issue.parent.dueDate}} as a new variable before you branch out. Then when you compare and edit, add the new variable.

link: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Create-variable-New-component/ba-p/1448118

Regards.

Fantastic, thank you @Fabian Lim will be looking into this today! Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events