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

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 Leaders.
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 Leaders.
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

Suggest an answer

Log in or Sign up to answer