Forums

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

Using Personal Access Token with scope

Jamiu Adeleke
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!
May 23, 2025

I am trying to read jira issue via API.

I created PAT without scope and the API works fine.

curl -u jira_email:PAT_without_scope -X GET "https://my-jira-space.atlassian.net/rest/api/3/issue/issue-id"

I create PAT with scope and I get error message:

curl -u jira_email:PAT_with_scope -X GET "https://my-jira-space.atlassian.net/rest/api/3/issue/issue-id"

{"errorMessages":["Issue does not exist or you do not have permission to see it."],"errors":{}}%

Scope applied:

read:board-scope.admin:jira-software
write:board-scope.admin:jira-software
read:jira-work
write:jira-work
read:issue:jirar
ead:issue:jira-software
read:issue.property:jira

As you can see I've tried multiple scope combinations and nothing is working.

4 answers

0 votes
Anna Woodard June 13, 2025

I am also having this exact issue - I have access to the project and issues in the GUI and can successfully post stories in our sandbox Jira environment, but I cannot get an issue in our production instance to be retrieved, I even tested it with a PAT made with only the scopes required for that 1 endpoint and it gave me the same error message in 2 different projects I have access to normally. Just this one endpoint is giving me issues

0 votes
Akash Singh
Community Champion
May 25, 2025

@Jamiu Adeleke Welcome to Atlassian Community!

 

API tokens with specific scopes are tied to OAuth 2.0 (3LO) and cannot be used directly with standard Jira REST API endpoints.

To use OAuth 2.0 tokens, you'll first need to construct the request using the appropriate resource URL that includes your Cloud ID, as outlined in the documentation:
🔗 Enabling OAuth 2.0 (3LO) for Atlassian Cloud

Your API endpoint should look like this:

https://api.atlassian.com/ex/jira/{cloudid}/rest/api/3/issue/{issueIdOrKey}

You can also retrieve the cloudid following the steps mentioned in this Atlassian guide.

Finally, you should include read:jira-work Classic scope to the token as recommended by others. A working curl command would look something like,

curl --request GET \
--url 'https://api.atlassian.com/ex/jira/{cloudId}/rest/api/3/issue/{issueIdOrKey}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
Jamiu Adeleke
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!
May 26, 2025

Thanks Akash, I will check it again today.

Akash Singh
Community Champion
June 12, 2025

@Jamiu Adeleke Were you able to resolve the issue? If so, kindly mark my answer as accepted, it helps others in the community find the solution more easily.

0 votes
Vinubabu _Vinu_
Community Champion
May 24, 2025

Hello @Jamiu Adeleke 


read:jira-work should allow you to access jira issues that you have permissions to. If you are having trouble with this, but able to access the issue with token without scope, please reach out to Atlassian support. It might be a problem with how the scope currently is set. Hope this helps.
Best, Vinu
0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2025

Hi @Jamiu Adeleke 

Welcome to the community.

Can you access this issue via the GUI?

If not, the error is correct, because it means you don't have access to the issue in that project.

Suggest an answer

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

Atlassian Community Events