JIRA permission manage:jira-configuration can not get Get workflow scheme project associations

Hi everyone,

Workflow scheme project associations can not be fetched, although we set permission manage:jira-configuration to the manifest.yml. The code is as belowL

// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api from "@forge/api";

const response = await api.asApp().requestJira('/rest/api/3/workflowscheme/project?projectId={projectId}', {
  headers: {
    'Accept': 'application/json'
  }
});

console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());

the manifest.yml

permissions:
  scopes:
    - 'storage:app'
    - 'write:jira-work'
    - 'read:jira-work'
    - 'manage:jira-project'
    - 'manage:jira-configuration'

The response returned: ‘Only Jira administrators can access workflow scheme associations.’
Can everyone share your thought?

Thanks,

Try api.asUser. Make sure the user should have “Administer Jira” permission.

Not sure if the app has " Administer Jira" permission.

Thank you for your suggestion. However, we intend to call this API asApp instead of asUser.

I think you are facing an existing bug :frowning:
Please follow the https://ecosystem.atlassian.net/browse/FRGE-212 which should solve the problem with app lacking administrative permissions.