Forums

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

REST API For GetSprints Returning ALL sprints not just from (boardId)

Timothy Fischer September 15, 2021

I'm trying to retrieve all sprints related to a Board and am using the following API call:

string jiraUrlEnd = $"/rest/agile/1.0/board/{boardId}/sprint?startAt={startAtNumber}";

When receiving the response, I'm seeing a ton of sprints from other boards that shouldn't be retrieved.

Is the API I'm using incorrect, or is there something I can do to retrieve the sprints from the board ID I'm sending?

 

Thanks.

 

1 answer

1 accepted

0 votes
Answer accepted
Ajay _view26_
Community Champion
September 15, 2021

Hi @Timothy Fischer 

Welcome to the Community!

Yes the API is correct as we use it internally to fetch the active Sprint for reporting.

Can you confirm if you see different originBoardId in the response?  Not very sure of this behavior, when the BoardID is specified in the API request.

Cheers

Ajay

Timothy Fischer September 15, 2021

No, I just checked and OriginalBoardId is zero for all of them.

I'll need to look into my code further, but do you think I'm using the wrong board ID maybe?

 

Thanks for your help.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events