I am creating an automation that allows me to have sub-tasks automatically created when creating an issue. I would like to have the due date of the issue set to the earliest due date of the sub-tasks that are being created. I have tried a few options, such as:
1) Adding a rule that sets the due date to {{issue.subtasks.duedate.min}} (based on https://community.atlassian.com/t5/Jira-Software-questions/Highest-Due-Date-from-Sub-tasks-copied-to-Parent/qaq-p/1903864)
Sub-tasks are created, but the due date is not added. This does work in other automations I have, e.g. when an issue is transitioned, sub-tasks are created automatically, and the due date is set in this way.
2) Creating a label or a comment instead, and then creating another rule triggered by this label or comment. This worked but creating comments might get messy after a while, so we were hoping for making the first option work or finding some other solution!
I hope someone can help and thanks!
Hello @Aleksandra Gregec
Welcome to the Atlassian community!
Try adding a Re-fetch Issue action after creation of the last subtask and before trying to edit the Due Date of the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.