Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a filter dynamically?

saikiran kollapudi
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!
June 25, 2018

Fixversion changes weekly, for example this week fixVersion is like 20180629 and next week fix version be like 20180706. How I create a filter with fixversion as latest week.

2 answers

1 accepted

2 votes
Answer accepted
Max Foerster - K15t
Community Champion
June 25, 2018

Hi Saikiran,

depending on when/how you create and release your versions. Have you had a look at the available  JQL functions unreleasedVersions() / earliestUnreleasedVersion() to build a dynamic filter in Jira?

saikiran kollapudi
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!
June 25, 2018

Thanks this is working.

Max Foerster - K15t
Community Champion
June 25, 2018

Glad to hear you were able to solve that with built-in features! :) 

0 votes
Alexey Matveev
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.
June 25, 2018

Hello,

You can use Jira Rest Api to automate this task. You can use PUT /rest/api/2/filter/{id}

to change the query of this filter every week. You can find more info here:

https://docs.atlassian.com/software/jira/docs/api/REST/7.10.1/?_ga=2.250398534.1504307142.1529525766-978693878.1529525766#api/2/filter-editFilter

Or if you have ScriptRunner you could create a listener for the VersionCreatedEvent and in this listener change the query of the filter.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events