Custom fields in Jira required
To make this integration work flawlessly, the custom field incident_id
is required. You can find more details in the Create an incident to Uptime from Jira
Automatically acknowledge Uptime incidents created in Jira by using our Incidents API and Jira Automation.
To make this integration work flawlessly, the custom field incident_id
is required. You can find more details in the Create an incident to Uptime from Jira
Go to the Jira Dashboard → Project Settings → Automation
If you'd like to apply this to all your projects, switch to the Global administration and apply the following to the Global rules
Click on Create rule
Select the Issue transitioned trigger, and then fill in the To status
as
In Progress
, and then Save the changes.
Now let's add the IF: add a condition
, choose the created incident_id
field, and Condition
= is not empty
. This will ensure that only the tickets that are connected with Uptime incidents will be taken into account.
We'll now follow with the THEN: add an action
and look for Send web request
action.
In the Web request URL, insert the Please, see obtaining an API tokenhttps://uptime.betterstack.com/api/v2/incidents/{{incident_id}}/acknowledge
. Also, fill in the Authorization
Header and insert your API Bearer Token.
Don't have your API token yet?
Now let's fill in the following:
Web request URL: https://uptime.betterstack.com/api/v2/incidents/{{incident_id}}/acknowledge
Headers (optional): Authorization: Bearer {{$TOKEN}}
HTTP method: POST
Web request body: Custom data
Custom data: "acknowledged_by": "{{assignee.displayName}}"}
THEN: add an action
and Comment on issue
, if you'd like to make sure that it's also in your Jira ticket. The comment then can be something like:
The incident has been acknowledged by {{assignee.displayName}}.
From now on, a new incident will be triggered in Uptime every time a new Jira ticket matching the conditions is created.
Please message us at hello@betterstack.com, and we will help you with all the necessary configurations.