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

Set subtask due dates 7 days before and 7 days after Parent Issue due date

What is the best way to set subtasks for Issues that are due a certain number of days before or after the Issue is due.  For example, we have a webinar scheduled for X date.  I want to set some tasks to be done 5, 7, 1 day before X date, and then 1 week and 2 weeks after X date.  

(I'm guessing I should not use "due date" for the parent issue for this, because a parent due date should probably not be before a subtask due date).  So how do I do this?  In other systems I've been able to assign the event as Day 0, and then back/front out all the tasks around it as +7, -7, etc.  

1 answer

1 vote
Marc Koppelaar
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 01, 2023 • edited

Hi @Sarah Edell 

Welcome to the community.

You can use Jira automation if you have this app on your Jira server.

Certainly you should use the Due date of the parent in the automation. 

This because you mention this: 

"What is the best way to set subtasks for Issues that are due a certain number of days before or after the Issue is due"

So you want sub-task to have a Due Date before or after the Due Date of it's parent as sub-taks always have a parent

You could set a condition that checks the Due Date vs. todays date and use this information to set due dates on your sub-taks

If you don't want to use the Due Date, as that is your final date when all sb taks also should be completed.

Create a new custom date field that you set a date to and use this field in the automation to set Due Dates for the subtasks.

Thank you.  I am very new.  Can you suggest what syntax I would use in the due date field of the subtask to make this happen? I am trying things like {{parentissue.plusBusinessDays(2)}} but it is not working.  I know I have not learned this well enough yet so I appreciate your help!

Marc Koppelaar
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 01, 2023

Hi @Sarah Edell 

If the parent is used as the trigger, you can use {{triggerIssue.duedate}}

The in the edit set the value to the due dat in the subtask to:

{{triggerIssue.duedate.plusBusinessDays(7)}} or {{triggerIssue.duedate.minusBusinessDays(7)}}

This for setting the date to future or historic value.

Suggest an answer

Log in or Sign up to answer