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.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.