Custom fields in Jira required
To make this integration work flawlessly, the custom field incident_id
is required. You can find more details in 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 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
Done
, 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}}/resolve
. Also, fill in the Authorization
Header and insert your API Bearer Token.
Don't have your API token yet?
Let's take a look at all details:
Web request URL: https://uptime.betterstack.com/api/v2/incidents/{{incident_id}}/resolve
Headers (optional): Authorization: Bearer {{$TOKEN}}
HTTP method: POST
Web request body: Custom data
Custom data: {"resolved_by": "{{updated}} - {{changelog.status}}"}
THEN: add an action
and Comment on issue
, which will then add the API's response to the ticket. The commend in t his case is {{webResponse.body}}.
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.