When I use REST api:
GET /rest/agile/1.0/board/{boardId}/sprint
I get response that looks like this:
{
"maxResults": 2,
"startAt": 1,
"total": 5,
"isLast": false,
"values": [
{
"id": 37,
"self": "https://your-domain.atlassian.net/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,
"goal": "sprint 1 goal"
}
]
}
In the response I get originBoardId.
My question is; given a boardId and sprintId, how can I get the originBoardId from SQL
You don't.
The code in Jira is working it out and presenting it on the API. There is no data for it in the database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.