How to filter by a dynamic sprint

Florian GOLESTIN May 28, 2021

Using the classic projects, we have many filters that select a specific sprint:

    AND Sprint in ("Spring Sprint")

But each time we change the sprint we need to manually update all the filters. We can't use the `openSprints()` variable because we have many sprint opened at the same time and we want to select a specific one.

Is there a way to query by a dynamic variable, so we can change it at one place and it changes everywhere?

2 answers

0 votes
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.
May 28, 2021

Hi @Florian GOLESTIN  -- Welcome to the Atlassian Community!

What problem are you trying to solve using a filter for a specifically named sprint?

And, is this a board filter, or just a filter used for reporting/dashboards?

Best regards,

Bill

0 votes
Danyal Iqbal
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.
May 28, 2021

There is no way to do it except openSprints(). You could add another criteria to the issues e.g add a customfield with sprint property which acts like your dynamic variable and add openSprints() annd the custom field variable to your JQL.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events