`/rest/agile/1.0/board` api not working from forge app

/rest/agile/1.0/board api not working from forge app, even when all required scopes are added in manifest.yml file. Getting unauthorized error:

status: 401,
statusText: ‘Unauthorized’,
headers: Headers {
date: ‘Thu, 27 Feb 2025 15:25:56 GMT’,
‘content-type’: ‘application/json’,
‘content-length’: ‘59’,
‘x-trace-id’: ‘a609848d1d12489ba194d4f87d448e9f’,
‘x-failure-category’: ‘FAILURE_CLIENT_SCOPE_CHECK’,
‘x-frame-options’: ‘SameOrigin’,
server: ‘AtlassianEdge’,
‘x-cache’: ‘Error from cloudfront’,

scopes configured:

  • read:jira-work
    • write:jira-work
    • storage:app
    • manage:jira-configuration
    • read:sprint:jira-software
    • write:sprint:jira-software
    • read:board-scope.admin:jira-software
    • write:board-scope.admin:jira-software
    • read:application-role:jira

Tried from asApp and asUser both, tried different scopes.

Welcome to the Atlassian Developer Community, @SahilAggarwal!

Checking the documentation, you are missing the necessary scopes:

Endpoint Documentation Link Scopes
GET /rest/agile/1.0/board/{boardId} docs read:board-scope:jira-software , read:issue-details:jira
POST /rest/agile/1.0/board docs write:board-scope:jira-software

Do try it out and let us know how it goes.

Cheers,
Ian

Yes, It worked, Thanks @ianRagudo

1 Like