Forge Ui-kit-2 application requestJira() with '/rest/api/3/applicationrole/jira-software' throwing Unauthorized; scope does not match error

Hi,

We’re currently developing a Forge UI Kit 2 application, and we’re encountering an issue when trying to call the following API endpoint: ‘/rest/api/3/applicationrole/jira-software’. When we execute this request, we’re receiving the following error: {code: 401, message: 'Unauthorized; scope does not match'}.

Strangely, we are able to execute the ‘/rest/api/3/issue/DM-4’ endpoint successfully. Could you please assist us in identifying the problem?

Please refer to the attached screenshots for more details.

additionally, we have added all the scopes which are related to Jira
https://developer.atlassian.com/platform/forge/manifest-reference/scopes-product-jira/
but still getting the same error

Thank you

Hello @JayPerera

I recommend the members of your team re-read the documentation for the Get application role endpoint… especially where it says:

// This API resource doesn't support Oauth2 (3LO).

:slight_smile: