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

Reset Due Date Based on Sub-Task Due Date

I'm struggling to get one or more automations in place to handle the following:

  1. If a parent (with sub-tasks) has a due date and the sub-task(s) does not, then clear the parent due date
  2. If a parent (with sub-tasks) has a due date that is earlier than the due date of the sub-tasks, then clear the parent due date

    When dealing with the sub-tasks, I can compare dates easily and add comments and reset dates. It trying to access the sub-task due date from the parent OR updating the parent due date from the sub-tasks.

1 answer

0 votes
Christopher Maxwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 27, 2023

Hi @Randy Simes ,

Can you post details about the automation you've currently set up?

Also, you might want to check out the automation that Trudy posted here:
https://community.atlassian.com/t5/Jira-Software-questions/Updating-an-issue-s-due-date-based-on-sub-tasks-due-dates-and/qaq-p/2346691

When: Value changes for

Due date

If: all match

  • Issue Type equals Bug
  • Bug Type is one of: Hotfix, RFA
  • Sub-tasks present 
  • Due date is not empty

For: Sub-tasks

Due date is empty

Then: Send email

Initiator

{{issue.key}} Due Date Conflict

How can I clear the {{triggerIssue.duedate}} within the scope of For: Sub-tasks? Edit Issue will be for a sub-task.


-------------------------------------------------------------------------------------

When: Value changes for

Due date

If: all match

  • Issue Type equals Bug
  • Sub-tasks present 

Then: Create variable

Create smart value variable
{{parentDueDate}}

For: Sub-tasks

Then: Add value to the audit log. 

{{parentDueDate}} {{issue.duedate}}

If: Compare two values

Checks if:
{{parentDueDate}} is less than {{issue.duedate}}

Then: Send email

Initiator

Parent {{parentKey}} has Due Date Conflict

And: Add comment to issue

Parent Due Date {{parentDueDate}} cannot be sooner than sub-task due date {{issue.duedate}}


In some cases, the duedate for sub-tasks is empty and it causes this automation to not perform any actions.

-------------------------------------------------------------------------------------

Christopher Maxwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 31, 2023

Hi Randy,

Thanks. I spent some time on element 1 today but didn't crack the code. I'll let you know if I get it...

Christopher Maxwell
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 03, 2023

Hi Randy, 

I don't want to leave you hanging. I think the key here, at least for element 1, will be switching the automation around to search for the sub-task, and then execute the action on the branch (parent ticket). Have you tried that approach? 

That's what I started on the other day and then ran out of time.

Thanks for your help - I'll mess around with that logic and see what I get

Suggest an answer

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

Atlassian Community Events