Acknowledge an incident

Automatically acknowledge Uptime incidents created in 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 Create rule.
  3. Select the Issue transitioned trigger.
  4. For To status, enter In Progress, then click Save.
    Automation trigger configuration in Jira
    Automation trigger detail in Jira
  5. Add an IF condition. Choose the incident_id field and set the condition to is not empty. This ensures the rule only runs for tickets connected to Uptime incidents.
  6. Add a THEN 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 THEN action to Comment on issue. 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 issue is moved to "In Progress", the corresponding Uptime incident will be acknowledged.