Help: Confluence macro with Forge : The app is not installed on this instance

Hi,

When i edit my confluence macro config in Confluence, my code calls a jira endpoint to list Jira projects.
The response return

INFO    13:35:22.727  c238926ee4910541  Response: 403 Forbidden
INFO    13:35:22.727  c238926ee4910541  { errorMessages: [ 'The app is not installed on this instance.' ] }

I don’t understand why it’s doesn’t work (‘error 403’), because my manifest contains all scopes needed. The app is well installed on instance.
I tried to unistall/re-install, but doesn’t resolve the problem

My code:

// Get list of Jira Project
const fetchProjects = async () => {
  const response = await api.asUser().requestJira(route`/rest/api/3/project`, {
  headers: {
    'Accept': 'application/json'
  }
});
  console.log("Jira project list - STATUS HTTP: "+ response.status);
  console.log(`Response: ${response.status} ${response.statusText}`);
  console.log(await response.json());


  if (!response.ok) {
    return "Error to get Jira projet list" + response;
  }

  return await response.json();
};

Manifest permission

permissions:
  scopes:
    - read:issue-type:jira
    - read:project:jira
    - read:project.property:jira
    - read:user:jira
    - read:application-role:jira
    - read:avatar:jira
    - read:group:jira
    - read:issue-type-hierarchy:jira
    - read:project-category:jira
    - read:project-version:jira
    - read:project.component:jira

Resolved with install app on Jira instance too. I uninstall app then re-install

1 Like

Hi @ThibautFAURE
Could you please share what’s the correct process when dealing with both Jira & Confluence APIs in a single Forge app?