Get all sprints in a project

Vivian Escalante February 16, 2018

Hello, 

I'd like to get all the sprints (and then the issues in the sprint) for a project through a groovy script. Any idea on how to do this? Can I do a JQL? 

2 answers

2 votes
Yugank Bhatnagar February 16, 2018

try this JQL

 

Sprint in (closedSprints(),openSprints()) AND project = "XYZ" 

Angel Leyva March 4, 2021

Great suggestion but this returns all issues in those sprints. I am trying to return all SPRINTs and not issues

Like # people like this
JUAN CARLOS DURAN AGUILAR March 9, 2022

In structure, group them by Sprint

Angel Leyva November 17, 2022

Do you have a sample? Not sure what you mean?

0 votes
Claus Rasmussen March 15, 2018

I have a similar problem. But I can not use the "Sprint" field in my search query? I get the following error: "The operator 'in' is not supported by the 'Sprint' field."

Yugank Bhatnagar March 15, 2018

Hi I just executed this query and was able to get results

 

sprint in (closedSprints())

Ashraf January 10, 2022

Hi All,

but don't know where to enter the query to search for the sprints

Like sagarecosmob likes this

Suggest an answer

Log in or Sign up to answer