Jira Cloud platform REST API To Retrieve all Boards

Hello Community,

The old Board api /rest/agile/1.0/board works with Basic Auth only please fix or add new api to retrieve boards using Bearer Token (OAuth 2.0 (3LO))

1 Like

@saeedbs20011 the Get all boards endpoint is enabled for OAuth 2.0 with the scopes read:board-scope:jira-software and read:project:jira.

The API documentation has an obsolete mention of a previous API change. That mention should be removed, so you can ignore it.

Dear epehrson,

I added the required scopes but still the API doesn’t work with bearer token.

1 Like

@saeedbs20011 can you clarify how it doesn’t work?

The HTTP status code should give you an indication, and the X-Failure-Category HTTP response header should provide more details.

1 Like

Hi, @epehrson , I’m having the same issue.

I have added the scopes, mentioned in the documentation:

scopes:
    - read:project:jira
    - read:board-scope:jira-software

This is the code that procuses the request:

import { requestJira } from '@forge/bridge';
const response = await requestJira('/rest/agile/1.0/board?maxResults=10');

I’m getting a 401 response, saying that the scope doesn’t match:

image
image
image

@HristoBurgazliev that should only happen if the app hasn’t been installed with the required scopes, unless there is some platform issue.

I would suggest that you raise a support request, providing the request ID for that request and a link to this thread.

1 Like

@epehrson , thanks for the reply! Since I’ve ensured, that the app is installed with the necessary scopes, I will raise a support request.