Forums

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

originBoardId in Sprint does not map back to id in Board

edgsep
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!
August 20, 2020

Hi, I am trying to create a multi-step process that will get JIRA's:

Boards -> Sprints -> Issues

 

Step 1 - Boards


I get all Boards by calling: rest/agile/1.0/board

Response 

{
"maxResults": 2,
"startAt": 1,
"total": 5,
"isLast": false,
"values": [
{
"id": 84,
"self": "http://www.example.com/jira/rest/agile/1.0/board/84",
"name": "scrum board",
"type": "scrum"
}
]
}

 

Step 2 - Get all Sprints for each Board

 

I get all Sprints for a board by calling: rest/agile/1.0/board/84/sprint

Response

{
"maxResults": 2,
"startAt": 1,
"total": 5,
"isLast": false,
"values": [
{
"id": 37,
"self": "http://www.example.com/jira/rest/agile/1.0/sprint/23",
"state": "closed",
"name": "sprint 1",
"startDate": "2015-04-11T15:22:00.000+10:00",
"endDate": "2015-04-20T01:22:00.000+10:00",
"completeDate": "2015-04-20T11:04:00.000+10:00",
"originBoardId": 5
}
]
}

 

Since I am storing the results in tables, the 1st dataset had an ID Column 84, that I used to request its Sprints in nested REST Calls, but the Sprint responses return a originBoardId that does not match with the send parameter.

I wanted to clear results before inserting in the table I was expecting to execute something like: "Delete from Sprint where originBoardId = 84", but this value does not match with the response value from the Sprint Call.

How does originBoardId works?

Is there a way to get the original BoardId sent <84>, back in a Sprint Call?

Any suggestion on how to implement the Boards -> Sprints -> Issues chain?

 

Thanks in advance for your help.

-ed

 

 

2 answers

0 votes
Amy Russell March 18, 2022

Did you ever figure this out? When I make a query in the api for 17 as the specific board id, and get back some responses that do not equal that 17, it was because there are certain stories (issues) that originated on a different board and got pulled into board 17 later. I dont know how to disclude those results from my sprint search. I only want board 17 information, but there doesnt seem to be anyway to specify originboardid in the browser url.

ie "https://xxxxx.atlassian.net/rest/agile/1.0/board/17/sprint"

0 votes
dbh613
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!
February 10, 2022

Apparently originBoardId is the "Rapid View" #, not the "board id" used in the API. 

If you want to navigate the API, use the "Board ID"

Suggest an answer

Log in or Sign up to answer