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 to set the fields start date and due date

Karoline Rezende Ramos
Contributor
February 7, 2022

It is possible that in automatic, we can assign a start date to a Story of the subtask with the earliest start date, and the end date of the story with the end date of the subtask with the latest end date?

2 answers

2 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Bill Sheboy
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 Champions.
February 7, 2022

Hi @Karoline Rezende Ramos 

Yes, you may do that based on the values changing for a subtask, and then update the parent based on the min/max in the other subtasks.

Please review the Lookup Issues action to help you gather the subtasks and then find the min/max for the set: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues

Kind regards,
Bill

Karoline Rezende Ramos
Contributor
February 8, 2022

Hi. Thank you very much for your help!

Like • # people like this
1 vote
Answer accepted
Pramodh M
Community Champion
February 7, 2022

Hi @Karoline Rezende Ramos 

You need to loop through the sub-tasks for Story to update the fields 

Get the start date

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#list.min

Get the end date

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#list.max

Action to update the story issue 

Thanks,
Pramodh

Karoline Rezende Ramos
Contributor
February 8, 2022

Hi @Pramodh M

With these smart values I was able to create the rule and it worked. Thank you ā˜ŗļø 

Like • Pramodh M likes this
David Leal
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 Champions.
February 22, 2023

@Karoline Rezende Ramos would your share the resulting rule (screenshot), it would help other members of this community on how to solve a similar problem. Thanks