Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create a filter that will refer to Active (current ) Sprint?

I am creating a JIRA filter with below code. It refers  to Sprint number (current Sprint ). I want to have a filter that always will show me list of issues in Active Sprint so that will have no need to create a separate Filter criteria for each new Sprint

 

project = XXX AND issuetype in (Bug, Improvement, Story) AND status in (Open, "In Progress", Reopened) AND Sprint = 65 ORDER BY issuetype DESC, cf[10008] DESC, Rank DESC

9 answers

1 accepted

You can do 

Sprint in (openSprints())

openSprints is a collection of all open sprints. Constraining by project etc may be good enough. We have many projects and hence many sprints so we had to create our own currentSprint("XXX") JQL function.

There is also "closedSprints()" and "futureSprints()"

 

I just found a previous answer https://answers.atlassian.com/questions/199842

Like Hendryck Anthony likes this

Thank you! That helped!

Nick, unfortunately it does not work for me - what I receive is "An option provided by the function 'openSprints' for the field 'sprint' does not exist." 

 

It happens while using 

Sprint in openSprints()

P.S We are using Jira Cloud

i had that error when i used "=" instead of "in". Also in JIRA cloud

Like Özlem Keyder likes this

It is a too late to reply but hope this will help someone else. You are missing a set of parenthesis

 

Sprint in (openSprints())
Like IRENE ORR likes this

what are you supposed to out in between the () ? the name of the sprint? 
It doesnt work for me 

2 votes
Rodrigo Rosa Atlassian Team Sep 29, 2015

Hello Yana,

Please try the filter described here smile

Sprint in openSprints()

yep.

Thank you!

THANK YOU!!!

Thanks! :)

Thanks! 

Thanks. 

Thanks a lot!!

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you