how can i get the specific issue belongs to which board using API

Ravi Gupta
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!
April 7, 2021

I have a list of issues which i got by calling the search API, how can i get the link b/w these issues and boards in a particular Jira Project.

2 answers

0 votes
Prince Nyeche
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.
April 8, 2021

@Ravi Gupta I believe since you can search an issue, you can get the sprint name, sprint id and boardid from the response. Then you can use that data gotten to extract more info on which boards those issue belong to by using the get issues for board endpoint, since you can identify a board id.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 7, 2021

You need to think slightly differently to what you've said there.  Issues do not belong to a board.  They are selected by a board.  The difference is important because you need to understand that boards are not issues containers (projects contain issues), they are views of a selection of issues.

It is hard to ask "what board is an issue shown on" because the issue is not part of a board, and has no data to say "I am on boards x, y and z".

You can easily go the other way though, and ask "what issues are on a board", as the board knows what it is selecting for. 

I'm not sure which of these might be best for you:

https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-agile-1-0-board-boardid-backlog-get

https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-agile-1-0-board-boardid-epic-epicid-issue-get

https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-agile-1-0-board-boardid-sprint-sprintid-issue-get

You'll see they're all on the same page of the docs and there are more calls that might help explained on the left.

Suggest an answer

Log in or Sign up to answer