How to pull board ID for Kanban board in API?
Asked by Kelly_Barrantes:

Here are the approaches we have pursued to establish a linkage between Jira Issues and Kanban Boards:  
1. **Analyzing Jira Ticket Data:**  
- We analyzed the Jira issue data to identify any information that could be used to link issues to Kanban boards. Unfortunately, we did not find any relevant information that could establish this relationship.  
2. **Using Board ID to Retrieve Related Issues:**  
- We attempted to use the board ID of a Kanban board to retrieve all related issues. However, this approach resulted in fetching all tickets of a project, rather than just those related to the specific Kanban board.  
Here's the API we utilized:  
\[Link to API Documentation\](<https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-issue-get>)  
3. **Exploring a Bridging Dataset:**  
- We explored the possibility of finding a dataset that could serve as a bridge between issues and Kanban boards. Unfortunately, we were unable to identify such a dataset.  
Despite our efforts, we have not yet established a programmatic method to link Jira issues with Kanban boards. We would greatly appreciate any insights or solutions you may have to help address this challenge. If there are any specific APIs, configurations, or data points that we might be overlooking, please do not hesitate to inform us.  


Answers:
author: Rebekka Heilmann _viadee_
body: Hi [@Kelly_Barrantes](/t5/user/viewprofilepage/user-id/5533304) and welcome to the Community!

Could you explain what exactly you are trying to achieve here?

Jira issues are not **linked**to a Kanban Board. Boards have a Board Filter and will show any issue that is returned by that filter. So in order to make an issue available on a board, you will either have to edit the Board's filter or the issue so it becomes part of the filter result.

comments: author: Vivek Vadadoriya
body: Hi [@Rebekka Heilmann _viadee_](/t5/user/viewprofilepage/user-id/5182395),

Thanks for the quick response.

Our goal is to link Jira Issue Data with its associated board. We have three types of boards: Scrum, Kanban, and Simple.

We can link issues to Scrum board data via sprint data. For instance, if an issue is associated with a sprint, we obtain the sprint data, which includes the board ID of the Scrum board. This allows us to join the datasets.

However, for Kanban, we are unable to link issues with their related boards. We do not receive any relevant information in the issue data, nor can we find a bridge to connect these two datasets.

We attempted to fetch related issues of a Kanban board by passing the board ID, but instead of receiving related issues, we retrieved all issues of the project.

Is there a way to programmatically join issue data with Kanban board data?


author: Vivek Vadadoriya
body: Is there a JQL query we can use to filter issues based on board number or name?  
For example, we use:  
project = "DCS", in the JQL query box to get all issues of the DCS project.


author: Rebekka Heilmann _viadee_
body: *"However, for Kanban, we are unable to link issues with their related boards. We do not receive any relevant information in the issue data, nor can we find a bridge to connect these two datasets."*

**Correct**. Like I said. There is no "connection" between the two other than the issues being returned by the filter. One issue can be shown on multiple Boards or none at all.

*** ** * ** ***

You can the Filter of the Board by pulling the Config: [The Jira Software Cloud REST API (atlassian.com)](https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-configuration-get)

With the Filter ID you can access the Filter's JQL and with that find the issues:

[The Jira Cloud platform REST API (atlassian.com)](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-filters/#api-rest-api-3-filter-id-get)

[The Jira Cloud platform REST API (atlassian.com)](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get)

However, there are also Requests that can pull any issue from a specific board with / without an Epic. That should give you the whole list also: [The Jira Software Cloud REST API (atlassian.com)](https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-epic-none-issue-get)

*** ** * ** ***

Not sure what else you would need?


author: Vivek Vadadoriya
body: Hi [@Rebekka Heilmann _viadee_](/t5/user/viewprofilepage/user-id/5182395) ,  
I passed the board ID in the "Get configuration" endpoint and retrieved the filter ID. Then, I passed this filter ID in the "Get filter" endpoint and obtained the JQL. The final JQL for one board I got is **"jql": "project = SASS ORDER BY Rank ASC"**.  
This JQL is not helpful as it fetches all the issues of the project SASS. Is there any other way to get the related issues of a board?


author: Rebekka Heilmann _viadee_
body: These ARE the issues shown in that board! You obviously don't filter any further. The only thing that might be configured is that old issues are not shown, but they still are part of the Board nonetheless.

Honestly - you can ask another five times, the answer stays the same. Sorry ;)


Tags: cloud

jira-cloud