Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

OAuth2 Permissions Issue with JIRA Service Management REST API

Justin _ ヨンス August 12, 2024

Description:

We are experiencing an issue with the JIRA Service Management REST API where the OAuth2 permission with granular scopes seems to be insufficient. Specifically, we have checked the permission for read:incident:jira-service-management, but we are unable to use the following REST API due to authentication failures:

 

Issue Details:

  • After granting the read:incident:jira-service-management scope, the REST API is returning an error indicating that authentication is unsuccessful.

 

Steps to Reproduce:

  1. Grant the read:incident:jira-service-management OAuth2 scope.
  2. Attempt to access the specific REST API endpoints mentioned above.

1 answer

0 votes
Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 13, 2024

こんにちわ @Justin _ ヨンス

welcome to the Atlassian Community.

I'd like to double-check on the REST API you're trying to access. Is it the Get Incident API as described here? Or do you intend to get the details of JSM Requests as described here?

I don't have experience with the Incidents API. If OAuth is not working with these scopes, I'd try it for troubleshooting if everything else with the request is fine by using Basic auth first as described here for Ad-hod API calls.

Hope that helps a bit,
Matthias.

Justin _ ヨンス August 14, 2024

I followed the instructions and used the script as described, but I encountered an issue. After getting the access token, the API request returns {"code":401,"message":"Unauthorized"}. Scopes like read:me work without any issues, but when I use read:incident:jira-service-management and write:incident:jira-service-management, I get this error after receiving the access token post-callback.

app-id: 15d03467-2f07-4cc2-884b-7354bca05045

Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 14, 2024

I'm afraid I can't help much here then. :/

You can check out Atlassian's docs how to get help for building Forge apps. This also recommends asking your question in the developer community. Maybe you have more luck over there.

Justin _ ヨンス August 14, 2024

@Matthias Gaiser _K15t_ 

Thank you for your response. I would like to ask a question from a different perspective. Is there a way to automatically add a team or members to the Responder Teams or Reponders(Edit Assts field attributes) when an issue is automatically cloned(In Jira Service Management)?

Suggest an answer

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

Atlassian Community Events