The API 'Get transitions' fails with the error:
Access to the resource was denied due to missing scope grants. Your app was granted the following scopes: [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, read:issue:jira, read:project.component:jira, api_access, read:group:jira, write:comment:jira, read:issue-status:jira, read:priority:jira, write:comment.property:jira, read:issue-type-hierarchy:jira, read:user:jira, read:issue-type:jira, read:project.property:jira, read:project-version:jira].
The resource can be accessed by having one of these groups of:
* current scopes: [read:status:jira, read:issue.transition:jira, read:field-configuration:jira]
* deprecated scopes: [read:jira-work]
Currently, I'm using Oauth2 access_token in the request header's Authorization to access Jira endpoints.
I have already provided the required scopes in the Oauth2 app. (read:status:jira, read:issue.transition:jira, read:field-configuration:jira)
If you look into the list of granted scopes in the above error, we can see there is 'api_access' which replaces 'read:issue.transition:jira' permission
Looks like there is a bug in Jira API server which replace the required scope with 'api_access' is the reason for this issue