Forums

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

Using the incident API to link an Alert to an incident ticket

Ken Young October 30, 2025

Hello,

I am trying to use an Automation to "Link an Alert" to a JSM incident using the Incidents rest API (https://developer.atlassian.com/cloud/incidents/rest/api-group-linked-alerts/#api-jsm-incidents-cloudid-cloudid-v1-incident-issueid-alert-add-post).  I have been abel to use the Oauth gateway to get a bearer token with the correct Oauth2 Scopes  shown in the token (read:incident:jira-service-management

write:incident:jira-service-management) when it is returned.  However, when I attempt to use the api call later in the automation (but within the token timeout) and I provide the incident id (not the key) and the cloud ID, the alert isn't being linked and I am getting a 401.  I did this in the past, but this time I am trying to use a Service account instead of a user account to do the update.  Are there restrictions to user accounts in relation to calling the Atlassian API's?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events