Automation: Custom field to have open or future sprint name to which issue is belonging currently

Pjotrs Obuhovs
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 27, 2024

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?

2024-02-27 22_02_36-Automation - GILDS Jira and 15 more pages - Work - Microsoft​ Edge.jpg

Best Regards, Pjotrs

1 answer

1 vote
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 27, 2024

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

Kalyan Sattaluri
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 27, 2024

Great solution.

Unfortunately turns out Data center does not have the Sprint's state attribute exposed. Cloud worked of course as you demonstrated. Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events