Resolve an incident

Automatically resolve Uptime incidents from Jira by using our Incidents API and Jira Automation.

Setting up the Jira automation rule

  1. In your Jira project, go to Project SettingsAutomation.

    To apply this to all your projects, go to Global administration and create a global rule.

  2. Click on Create rule.

  3. Select the Issue transitioned trigger.

  4. For To status, enter Done, then click Save.

    ACK Trigger.png
    Resolve Trigger.png

  5. Add an IF condition. Choose the incident_id field and set the condition to is not empty.

  6. Add a THEN action and select Send web request.

    ACK Action.png

  7. Configure the web request:

    Web request URL: https://uptime.betterstack.com/api/v2/incidents/{{incident_id}}/resolve
    Headers: Authorization: Bearer $TOKEN
    HTTP method: POST
    Web request body: Custom data
    Custom data: {"resolved_by": "{{updated}} - {{changelog.status}}"}

    Resolve Action Detail.png

  8. (Optional) Add another THEN action to Comment on issue. You can use {{webResponse.body}} to add the API's response to the ticket.

    Resolve Comment.png

That's all. 🎉

From now on, when a Jira issue is moved to "Done", the corresponding Uptime incident will be resolved.

Need help with the Jira integration?

Please message us at hello@betterstack.com. We will help you with all the necessary configurations.