Hey!
I would like to link an Ops alert (which I successfully created via a web request in the previous automation step) to the corresponding ticket that triggered this alert in the automation.
Something like: "Alert #9 is caused by Ticket-17" or "Alert #9 blocks Ticket-17". Is this possible?
Alternatively, is there a manual trigger that can link both together?
I would appreciate your help.
Hi @Joanna
In Automation, you can do the "link" between an incident ticket and the alert using this REST API and the Sent Web Request automation component
The specific URL I use is
https://api.atlassian.com/jsm/incidents/cloudId/{{jsmCloudId}}/v1/incident/{{issue.id}}/alert/add
In the URL, I am passing our cloudID of our jsm instances, as well as the issue id of the incident that was created.
In my use cast, the custom data that I pass is the alert
{
"alertIds": [
"{{alertId}}"
]
}
Since it is an experimental API at the moment, the headers you need to added to the web request
ExperimentalApi: opt-in
Accept: application/json
Content-Type: application/json
Authorization: {{Your Authorization method i.e. basic, token, etc.}}
Remember to delay the execution of subsequent rule actions until you get your response. It is an asych operation to "link" the alerts so you may to add a delay or some other way to pause if you wish to confirm that the alert is linked to the incident.
Good luck. Hopeful there will be a "lookup alert" or edit alert that makes this easier.
You have the "ExperimentalApi" spelled that way, while Atlassian seems to spell it "X-ExperimentalApi" (I have tried both and apparently one needs the X- up front)
The Authorization that worked for me was 'Basic' with my personal Token after encoding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.