Acknowledge an incident

Automatically acknowledge Better Stack incidents created in Jira by using our Incidents API and Jira Automation.

Did Better Stack create the work item?

Use Better Stack for Jira instead. It adds Acknowledge, Resolve and Reopen buttons to work items Better Stack created or linked for an incident, with no Jira Automation to set up. This guide is for incidents created from Jira.

Setting up the Jira flow

  1. In your Jira space, click More actions (…) β†’ Space settings β†’ Automation. To apply this to all your spaces, go to Global administration and create a global flow.
  2. Click Create flow.
  3. Select the Work item transitioned trigger.
  4. For To status, enter In Progress, then click Save.
    Automation trigger configuration in Jira
    Automation trigger detail in Jira
  5. Add a condition. Choose the incident_id field and set the condition to is not empty. This ensures the flow only runs for work items connected to Better Stack incidents.
  6. Add an action and select Send web request.
    Add a Send web request action in Jira
  7. Configure the web request. Set the Web request URL to https://uptime.betterstack.com/api/v2/incidents/{{incident_id}}/acknowledge, the HTTP method to POST, and the Web request body to Custom data with the following value:

    Custom data
    {"acknowledged_by": "{{assignee.displayName}}"}
    

    For Headers, add an Authorization header with this value:

    Authorization header
    Bearer $TOKEN
    


    Web request configuration in Jira

  8. Optional: add another action to Comment on work item. For example: The incident has been acknowledged by {{assignee.displayName}}.

    Comment on issue action in Jira

That's all

From now on, when a Jira work item is moved to "In Progress", the corresponding Better Stack incident will be acknowledged.