Forums

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

Using service account to call v3 rest api (e.g Get issue)

Harrizontal
February 18, 2026

Hi there,

I am trying to call `/rest/api/3/issue/{issueIdOrKey}` using my service account using the Basic Auth approach (not OAuth though) with all granted roles and the relevant scope needed. However, I am still facing "Issue does not exist or you do not have permission to see it."


Here are the things that I did:

During the creation of service account, I have grant all roles to my service accountScreenshot 2026-02-19 at 3.04.38 PM.png

In addition to that, I also created an API token with the scope of `read:jira-work` (needed for Get issue api)

However, after doing all these, I am still facing 404 issue with "Issue does not exist or you do not have permission to see it."

Was wondering what else did I missed?
 

 

 

 

4 answers

2 votes
Arkadiusz Wroblewski
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 Champions.
February 18, 2026

Hi there @Harrizontal 

I think I see what’s happening.


In Jira Cloud, getting a 404 (“Issue does not exist or you do not have permission to see it”) usually means authentication is working, but the user behind the API token (your service account) doesn’t actually have permission to view that issue.

Granting app roles and creating an API token (even with read:jira-work) doesn’t automatically give the account access to project issues — Jira still enforces the project permission scheme and issue-level security:
Project permissions: The service account (or a group it belongs to) must have Browse Projects (and typically View Issues) in the project’s permission scheme.


Issue Security (very common): If the project uses an Issue Security Scheme, the service account must also be included in the relevant security level; otherwise Jira will return the same 404 even if the account can browse the project.


The quickest sanity check is: can you log into Jira as that service account and open the issue in the UI (/browse/KEY-123)?
If it can’t see it in the browser, it won’t be able to fetch it via /rest/api/3/issue/{issueIdOrKey} either.


Also worth double-checking that Basic Auth is set up as email address + API token (base64 of email:token) and that you’re calling the correct site URL (https://<your-site>.atlassian.net).

 

in most cases it comes down to product access + Browse Projects and/or Issue Security.

1 vote
Dirk Ronsmans
Community Champion
February 18, 2026

@Harrizontal i'd like to direct you to this article 

https://community.atlassian.com/forums/Jira-Cloud-Admins-articles/A-Guide-to-Service-Accounts-in-Atlassian-Cloud-Part-3-Service/ba-p/3186388

 

The main take away here to validate is that you are using the correct endpoint base url. When using a normal account without a scoped token your base url would be your site url. However, if you use a scoped token it would be api.atlassian.com/.... as described in the article.

Can you confirm that you are using the correct url?

Harrizontal
February 20, 2026

Oh, got it!

I am using <mysiteurl>.atlassian.net with the service account. 

I change to api.atlassian.com, and it works. 

However, I do have an small issue. 

i tried: https://api.atlassian.com/ex/jira/{cloud_id}/rest/servicedeskapi/request/KAN-1 (using the same service account and token - yes, i have given read:servicedesk-request scope), and i face a webpage with (null), and Encountered a "null - null" error while loading this page with 403 forbidden. 

Was wondering did I missed out something at my end?

Many thanks again, Drik. 

Harrizontal
February 20, 2026

Ah, is okay. I managed to found out why.

I didn't create a service desk, and figuring out the groups and roles, and managed to get it work for the servicedeskapi endpoint.

What a wild ride ride, but thanks anyway!

1 vote
Christos Markoulatos -Relational-
Community Champion
February 18, 2026

Hi @Harrizontal welcome

Give the account a Jira license for the product that hosts the issue (Jira Software vs. Jira Service Management). Without product access, the API can’t see issues. Add the service account (via group/role) to a permission scheme that grants Browse projects for that project. Without  Browse, you’ll get the same 404. If the project uses an Issue Security Scheme, ensure the service account is in a level that can view that issue. Otherwise: 404.
For Jira Service Management issues, the service account often needs agent access to see agent‑only fields/comments; lacking product access can look like a 404.

Hope this helps!

0 votes
Karan Sachdev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 19, 2026

Hey @Harrizontal

Welcome to Atlassian Community!

Service accounts use tokens with scopes, and the format of the base URL is different in this scenario.

The format is {{https://api.atlassian.com/ex/jira/{cloudId}} as explained in this document.

To find the cloud ID, go to admin.atlassian.com > Apps > Sites and select your site. The URL contains your site ID (after /s).

I hope this helps!

Thanks!

Harrizontal
February 20, 2026

Hi Karan,

Thanks for the helping me out. 

I am using <mysiteurl>.atlassian.net with the service account. 

I change to api.atlassian.com, and it works. 

However, I do have an small issue. 

i tried: https://api.atlassian.com/ex/jira/{cloud_id}/rest/servicedeskapi/request/KAN-1 (using the same service account and token - yes, i have given read:servicedesk-request scope), and i face a webpage with (null), and Encountered a "null - null" error while loading this page with 403 forbidden. 

Was wondering did I missed out something at my end?

Thanks ahead.

Like Karan Sachdev likes this
Harrizontal
February 20, 2026


Found out why it doesn't work.

I didn't create a service desk, and figuring out the groups and roles, and managed to get it work for the servicedeskapi endpoint.

What a wild ride ride, but thanks again!

Like Karan Sachdev likes this
Karan Sachdev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2026

Hey @Harrizontal

I'm glad your concerns are all addressed now. Please accept the answer as it helps other fellow community users with similar concerns.

Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events