Forums

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

Get SprintID via REST API for empty, future sprint

Thomas Bamesberger
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!
May 28, 2023

Hi!

 

Currently I am working on a script to extract some data via the REST API, e.g. getting the sprint-IDs for active & future Sprints. To get all the sprints I am using the endpoint:

rest/agile/1.0/board/{boardid}/sprint?startAt={startat}

Using pagination and stuff it basically works, It returns all the active and future sprints and I am able to extract the sprint-ID.

WIth one exception: It only returns future sprints containig at least one issue. If the sprint has just been created and no issue is assigned to it yet, then the REST API doesn't include this sprint in the returned list, almost like the sprint doesn't exist.

 

What am I missing here? Is there any way to get the sprint-ID of an empty, future sprint?

 

Any help appreciated!

1 answer

0 votes
Sunny Ape
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.
May 28, 2023

Hello @Thomas Bamesberger 

Jira Software CLOUD does not have that problem.

If it's a genuine bug in Jira Software SERVER, you may want to check all the old bugs (Not that it will ever be fixed, given it's a discontinued product and all support ends soon)

Jonathan Waite
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 16, 2023

I am seeing the problem on Jira Cloud

Suggest an answer

Log in or Sign up to answer