403 Forbidden Error: JIRA Cloud REST API projectCategory


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 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.

Any input, suggestions or help would be much appreciated.

Thanks.

 

1 answer

This widget could not be displayed.

I am having the same issue. Did you find any solution to this ?

No not yet. I've also posted over on the developer forums, but haven't had any responses.

Interestingly, the API request works using Postman with an API Key. So I'm thinking it has to be related to permissions with how we're executing the request within the app.

Have you had any luck finding an answer?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

301 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you