I was trying out this API. OAuth 2 is used in our application. Request is failing with status code 403. We have all the scopes that API requires in our application too. Since that API can be accessed anonymously, I tried to hit it with Basic Auth with the same configuration and it is working for this way. What could be possibly going wrong when i am trying to access the API with Bearer Auth in OAuth 2?
Thanks @Dev Jadeja for flagging this.
Your colleague shared this thread with us.
Let's move thist conversation to the post in the developer community: here: https://community.developer.atlassian.com/t/adding-readjira-scope-which-is-required-to-get-labels-is-causing-errors-in-other-apis/56311/9
Caterina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Martin Bayer _MoroSystems_ s_r_o__, yes, these 3 scopes are already added there.
read:issue.transition:jira
read:status:jira
read:field-configuration:jira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I am trying to hit it with Bearer Auth Token in OAuth 2 using Postman, I am getting this message back with 403 as response code.
{"errorMessages": ["Access to the resource was denied due to missing scope grants. Your app was granted the following scopes: [write:webhook:jira, read:status:jira, read:application-role:jira, write:attachment:jira, read:project-category:jira, read:project:jira, read:issue.vote:jira, read:field-configuration:jira, write:issue:jira, read:issue-security-level:jira, write:issue.property:jira, read:issue.changelog:jira, read:avatar:jira, read:issue-meta:jira, delete:webhook:jira, read:issue:jira, read:project.component:jira, read:field.option:jira, api_access, read:group:jira, write:comment:jira, read:label:jira, read:issue-status:jira, write:comment.property:jira, read:issue-details:jira, read:issue-type-hierarchy:jira, read:jql:jira, read:user:jira, read:field:jira, read:issue-type:jira, read:project.property:jira, read:webhook:jira, read:field.default-value:jira, read:project-version:jira].\nThe resource can be accessed by having one of these groups of:\n * current scopes: [read:status:jira, read:issue.transition:jira, read:field-configuration:jira]\n * deprecated scopes: [read:jira-work]\n"]}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.