Hello,
I have custom field Actual Sprint, where I would like to see open or future sprint name to which issue is belonging currently.
I am trying to setup automation to do this, but I am not expert.
My idea is:
when default Sprint field is changed
copy value of default Sprint field to Actual Sprint,
Unfortunately default Sprint field contains all closed sprints + open or future sprint name to which issue is belonging currently.
My team moves issues between sprints and backlog quite often, in such cases automation does not work as expected.
How do I avoid populating closed sprint names to field Actual Sprint?
Best Regards, Pjotrs
Hi @Pjotrs Obuhovs -- Welcome to the Atlassian Community!
Do you mean you want the active (or future) sprint stored in the "Actual Sprint" field, ignoring any closed ones?
If so, you may try filtering on the sprint state, and then return just the sprint id value. For example:
{{#issue.sprint}}{{#if(or(equals(state,"active"),equals(state,"future")))}}{{id}}{{/}}{{/}}
How this works...
Kind regards,
Bill
Great solution.
Unfortunately turns out Data center does not have the Sprint's state attribute exposed. Cloud worked of course as you demonstrated. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.