Hi,
We’re currently getting a 403 Forbidden error when calling the the JIRA Cloud Rest API for projectCategory from an Atlassian Connect Express app. In our development instance the app is provided all scopes in the atlassian-connect.json, as follows:
"scopes": [
"READ",
"WRITE",
"DELETE",
"PROJECT_ADMIN",
"ADMIN",
"ACT_AS_USER"
]
Interestingly as an authenticated JIRA admin user in the browser we can hit “https://ourinstance.atlassian.net/rest/api/2/projectCategory” and the anticipated JSON object is returned containing a test project category which was created manually through the JIRA instance administration.
The simplified request code within our application is as follows:
AP.request({
url: '/rest/api/2/projectCategory',
type: 'GET',
contentType: 'application/json',
success: function(response) {
console.log(response);
},
error: function(response){
console.log(response);
}
});
Other REST API calls (e.g. issueTypes) are working as anticipated from the Connect Express app. Is there something we’re doing incorrectly with authentication? We have “JWT” listed a the authentication type in the atlassian-connect.json.
We’ve only recently started JIRA app development so any input, suggestions or help would be much appreciated.
Thanks.