Hello,
I've searched in automation but I can't manage...
How can we automatically assign to a ticket the start and end dates of the sprint to which it belongs, in the fields "Start date" and "Due Date" ?
{{sprint.startDate}} => Start date
{{sprint.endDate}} => Due date
Thank you for your help !
Best regards
Aline
Thanks you for your answer, Marc, but it doesn't work :
"Error when editing tickets
TSS-1 (duedate must be in “yyyy-MM-dd” format (duedate), Start date must be in “yyyy-MM-dd” format (customfield_10015))"
... a problem with the date format
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The rule below works, but only when a sprint has been started.
(hope you're fluent in french ;o) )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding to the suggestions from Marc...
Please note an issue's Sprint field is a list of values. Thus when an issue "carries over" as incomplete from a prior sprint, the field now contains at least 2 sprints.
Thus it will help to know when you want to set the Start Date and Due Date values, and what they should contain:
For example, if the rule trigger was not Sprint Started, you could set the date values for the issues in the sprint using these expressions:
{{#issue.sprint}}{{#if(equals(state, "active"))}}{{startDate}}{{/}}{{/}}
{{#issue.sprint}}{{#if(equals(state, "active"))}}{{EndDate}}{{/}}{{/}}
Or, if you assume the needed sprint is always the one with the latest dates, these would work:
{{issue.sprint.startDate.max}}
{{issue.sprint.endDate.max}}
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
Thank you very much for your answer ! I applied your last solution and it works very well.
Thanks for all the time saved !
Best regards
Aline
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.