Call application-roles API with forge custom ui

Hi,
I need to get a number of seats available in Jira. I have a forge with a custom UI and I try call this API /rest/api/3/applicationrole https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-application-roles/

I use ‘@forge/bridge’ to call the rest API and raised 403 status code.

import { requestJira } from '@forge/bridge';


export const getAll = async () => {
    const response = await requestJira(`/rest/api/3/applicationrole`);
    return response?.json();
};

So I note this comment in the code sample: This API resource doesn’t support Oauth2 (3LO). See alternate authorization methods:

There is a way to call this API in custom UI without this API support Oauth2 (3LO)?

3 Likes

Hi @FelipeCauFragaCarnei , please let us know if you got any solution for this, we are also facing the same issue

Hi, @KavithaSivalingam unfortunately, I couldn’t find a way to call this API.

Thanks for your update @FelipeCauFragaCarnei .

~Kavitha