Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,568
Community Members
 
Community Events
165
Community Groups

Jira filter for a list of sprints

Edited

Hello,  please I need a help for task to prepare a filter that shows the tickets of sprints from sprint 1 to  10 without using all the numbers 1,2, ...10 , I need a generic method if possible to use only 1 and 10  ( like: show from 1 to 10 )

Untill now I have this but it uses all the numbers, it is not usefull :
project = SWTAM AND (Sprint = "STAMBD-Sprint 1" OR Sprint = "STAMBD-Sprint 2" OR Sprint = "STAMBD-Sprint 3" ........)

3 answers

1 accepted

0 votes
Answer accepted
Sudarshan Community Leader Jan 08, 2021

Hello @Bilal_a bilal_aa  Welcome to the community,

Firstly - JQL does not support looping statements (like if, else, switch)
so, your method of (n-1) will not work here.
JQL is a simple data extracting query language.

Why not try to query all the items in your project and then export the to excel , filter them sprint wise and then you will have what you need.
(but you will have to do some export and excel data correction stuff)

But i understand you will have to do this as a manual activity on a regular reporting basis.

project = SWTAM AND sprint in( sprint 1, sprint 2,sprint 3,sprint 4,sprint 5,sprint 6,sprint 7)

 

or if you have only these 10 sprints in your project 

and some sprints are closed , one is active and few are future then try this below

project = SWTAM AND Sprint in (futureSprints(),closedSprints(),openSprints()) 

Try and let us know

Like Peter Miklian likes this

thanks 
the problem is that I need to use the operator "OR" to not have repeated tickets (duplicated line in excel)

How is this post shown with "ACCEPTED" Answers. 

 

The answer is a non-answer.

 

Cannot be DONE...is not "Answered"

"Answered" = Solution(s) is/are available.

"Responded to" = Responses have been given, some of which surface that is/is not possible to have a direct/indirect solution.

0 votes
Jack Brickey Community Leader Jan 08, 2021

If you want to see all issues that have a sprint  associated then use ... AND sprint is not empty. However if you want specific sprint you must list each sprint you wish. You cannot specify a range. 

thanks ( I want a range but it seems it is not possible )

Like Marcelo Lopez likes this

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