Get all sprints in a project

Vivian Escalante
Contributor
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
Contributor
February 16, 2018

try this JQL

 

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

Angel Leyva
Contributor
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
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!
March 9, 2022

In structure, group them by Sprint

Like David Greenwood likes this
Angel Leyva
Contributor
November 17, 2022

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

Cory Lum October 8, 2024

Create a HeatMap gadget with the results configured against Sprint field to see the list. 

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
Contributor
March 15, 2018

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

 

sprint in (closedSprints())

Ashraf
Contributor
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
TAGS
AUG Leaders

Atlassian Community Events