Forums

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

access to SLA fields for service account via API

Ruud Bakker
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!
April 21, 2026

We have created a service account with a scoped API token to fetch JIRA issues (including service management issues). We are able to fetch the issues, but still get the following error for fetching SLA custom fields (time to resolution/time to first response): 

You do not have permission to fetch the list of SLA custom fields"
taken steps:

  •  we have concluded with a personal scoped API token that the issue is not the included scopes
  • we have added the service account to the group "jira-servicedesk-users"
  • The service account has "user (agent)" accessto jira service management

any idea on how we can manage to get the correct permissions to fetch data from these fields?

1 answer

0 votes
Dirk Ronsmans
Community Champion
April 21, 2026

Hi @Ruud Bakker ,

Could you elaborate on what api endpoint you are using and the exact error message?

I would guess that you are perhaps missing a scope on the API token, however that would normally be specifically indicated in the error.

Ruud Bakker
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!
April 21, 2026
JSM request access
https://api.atlassian.com/ex/jira/xxxxxxxxxxxxx/rest/servicedeskapi/request/xxxxxxx

STATUS: 403
{ "errorMessage": "You do not have permission to view this request.",
"i18nErrorMessage": {
"i18nKey": "sd.request.view.error.no.permission",
"parameters": []
}
}
Jira issue field access
https://api.atlassian.com/ex/jira/xxxxxxxx/rest/api/3/issue/xxxxxx

PARAMS: {'fields': 'summary,customfield_10036,customfield_10037'}
STATUS: 200
{
"expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
"id": "xxxxx",
"self": "https://api.atlassian.com/ex/jira/xxxxxxxxxx/rest/api/3/issue/xxxxx",
"key": "xxxxxx",
"fields": {
"summary": "xxxxxxxx",
"customfield_10036": {
"errorMessage": "You do not have permission to fetch the list of SLA custom fields",
"i18nErrorMessage": {
"i18nKey": "sd.sla.field.service.permission.error.fetch",
"parameters": [] } },

it should not be a problem with the scopes of the API token, as i have created a personal token with the same scopes as the token for the service account and i was able to get a valid response with that.

Suggest an answer

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

Atlassian Community Events