Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

403 When trying to create an issue in a private issue tracker via cloud app JWT and cloud REST api

Joseph Potochny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2023

Hello,

 

I am trying to test the creation of issues on a private issue tracker in one of my workspaces. I am using our development cloud app to authenticate the calls, with the scopes "issue:write", "repository", "account", and "pullrequest". According to the docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-issue-tracker/#api-repositories-workspace-repo-slug-issues-post all I should need is the "issue:write" scope.

I then tried adding more scopes to see if there was some other scope I needed, but even after re-installing the app on my workspace and completely removing/installing it, I still can't create the issues .

I tried exchanging the JWT I am creating for an access token in order to view the scopes, and the scopes don't seem to have the updated scopes I added to the descriptor (though it still has issue:write, account, and pullrequest)

 

I see the additional scopes when I am authorizing the install of the app, so it is strange to me that the JWT doesn't seem to get the new ones.

 

So I have 2 problems:

1. The "issue:write" scope doesn't seem to be enough to create issues on a private issue tracker, even combined with the "repository" scope.

2. I don't get updated scopes if I update my app and generate a new JWT. The app isn't on the marketplace, so I am using its install url directly.

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 18, 2023

Hi Joseph and welcome to the community!

I haven't been involved with app development so I don't know the answer to your questions. I just wanted to suggest posting your question in the developer community, as this is specifically for app development questions:

Kind regards,
Theodora

Joseph Potochny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 18, 2023

Oh, awesome I'll go post it there!

Like Theodora Boudale likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events