Get BoardId From Project REST API

Robertino Nicolazzi September 20, 2017

Hello, well like the title says, i am trying to get the board configuration of a project

 

Right now, i iterate over all board and catch the project that i want, but this is to bad for performance in my system

 

there is a way to get the board directly from de project??

I want the board to get board configuration and render my jira columns

 

Thanks!!

2 answers

3 votes
Vishal Kharde December 8, 2020

It is possible to get boards associated to a jira project using the following REST api,

Rest Endpoint: /rest/agile/1.0/board?projectKeyOrId={Project Key}

Method Type: GET

japemjean February 16, 2021

Thanks, your answer is very much appreciated.  I was wondering if there is an endpoint allowing to retrieve the properties of a given board. For instance, imagine I'm trying to get the columns I've defined, as well as the statuses that belong to each one of them. Any ideas?

Like Vishal Kharde likes this
Vishal Kharde September 18, 2022

@japemjean 

Yes, there is an endpoint to get this required configuration information about a board. Sharing it below if you are still looking for it,

REST ENDPOINT: GET /rest/agile/1.0/board/{boardId}/configuration

This endpoint will give a response which has a param named "columnConfig" which 

will contain the information which you are looking for,

"columnConfig": { "columns": [

{ "name": "To Do", "statuses": [ { "id": "1", "self": "https://your-domain.atlassian.net/status/1" }, { "id": "4", "self": "https://your-domain.atlassian.net/status/4" } ] },

{ "name": "In progress", "statuses": [ { "id": "3", "self": "https://your-domain.atlassian.net/status/3" } ], "min": 2, "max": 4 }]}

Vishal Kharde September 18, 2022

Did my answer solves your problem?

If so, consider to mark the proposed solution as an 'Accepted answer'. This will help other people with the same or a quite similar problem to find a solution in a easy and faster way. In addition, by doing this the post will automatically gain the "Solved:" prefix in search results to indicate other people that no further support is needed.

Thanks,

Vishal k

1 vote
Warren
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.
September 21, 2017

Hi Robertino

The problem with what you're trying to do is this :

A board is a view into a number of tickets (defined by the filter used for that board) and can be across projects. We often have multiple boards for the same project, which is why you can't expect Jira to be able to tell you which board relates to a specific project.

Robertino Nicolazzi September 21, 2017

ahh okey, so the way that i am doing right now is okey?

iterate over all board /rest/api/2/board

then /rest/api/2/board/id/projects and catch what i need

 

i found another call /rest/greenhopper/1.0/rapidview, it can be that parentProjectid and id fields in this call may be what i want?

Warren
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.
September 21, 2017

i just think this is a much older version of a similar call. Keep doing what you are currently 

Robertino Nicolazzi September 21, 2017

Thanks Warren!!

kn.wh April 24, 2020

Is this still the best way to see all boards for some projects? 
This post is a few years old. 
> iterate over all boards for their ids, then return the related projects? 

Warren
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 26, 2020

Hi @kn.wh 

Yes I believe so. The API has moved from v2 to v3, where there have been some structural changes to the calls, but I still don't think there's an easier way. To be honest, having ti coded and running automatically, it shouldn't take that long to get the details.

It may also be worth checking, exactly what are you after? what are you trying to get?

cpear April 27, 2020

Is there documentation on v3 of the API? Whats the URL? Thanks.

Warren
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 27, 2020

Suggest an answer

Log in or Sign up to answer