Acknowledge an incident

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

Setting up the Jira flow

  1. In your Jira space, click More actions (…) → Space settingsAutomation. 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 Uptime 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 Uptime incident will be acknowledged.