The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation: Setting an issue's due date based on the earliest due date of sub-tasks

Aleksandra Gregec
Contributor
May 1, 2023

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)

jira1.jpg

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!

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Trudy P Claspill
Community Champion
May 1, 2023

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.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events