Jira Cloud REST API not return all informations in Forge app

Hi,

I have a problem with “Get all permission schemes” method in Forge.
When I’m executing this method in Postman, I’m receiving JSON with all permission schemes and permissions assigned to them.
But when I’m executing the same method in Forge, I have only two out of three permission schemes.
What’s more, in “permissions” object for specified permission scheme, I have only part of permissions available, rest is not returned.

Where is a problem?

This is my “GET” method:

const getAllPermissionSchemes = async() => {
  const res = await api
    .asApp()
    .requestJira(`/rest/api/3/permissionscheme?expand=permissions`, {
    method: 'GET',
    headers: {
    'Accept': 'application/json'
    }
    });

  console.log(`Status: ${res.status} ${res.statusText}, ${res.errorMessage}`);
  const data = await res.json();

  return data;
};
1 Like