Hi @Bernd W Neumann
Welcome to the community,
This requirement of your was a nice exercise for me! It was a bit tricky to accomplish that, but everything turns out great! You can create the following rule which I'll explain just below:

- Starting off, you create your trigger to which you select "Due date" and only for the edit operation.
- Next you should add a condition about this rule continuing only if the issue type is task (you don't want this to get triggered for Epic or subtasks)
- Then you create a variable called "difference" or whatever else you choose and in that you type the below smart value, which will give you the difference number of days for the changed field.
{{fieldChange.fromString.toDate.diff(fieldChange.toString.toDate).days}}

- After that you create your branch and you choose "For Sub-tasks"
- Then you add an Edit Issue component and you select your two fields, Start and Due date
- Then you paste as a value the following:
- {{issue.Start date.plusDays(difference.asNumber)}}
- {{issue.Due date.plusDays(difference.asNumber)}}

Some things to take into account:
- If the subtasks have values but your task does not, then changing the values from the task, will erase the values from your subtask. So be careful with that
- Take a look at that @Tessa Tuteleers wrote about the business days. Increasing or decreasing days without taking into account weekends, can result in having a Start or Due date falling into a weekend. To avoid that try on the Edit Issue component to replace plusDays with plusBusinessDays
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.