Call application-roles API with forge custom ui

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

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)?

1 Like