# Acknowledge an incident

Automatically acknowledge Uptime incidents created in Jira by using our [Incidents API](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/) and [Jira Automation](https://www.atlassian.com/software/jira/guides/expand-jira/automation ";_blank").

[warning]
## Custom fields required in Jira
This integration requires the custom field `incident_id`. For details, see the [Create an incident in Uptime from Jira](https://betterstack.com/docs/uptime/jira/better-uptime/create/) guide.
[/warning]

## Setting up the Jira automation rule

1. In your Jira project, go to **Project Settings** → **Automation**.
[info]
To apply this to all your projects, go to **Global administration** and create a global rule.
[/info]
1. Click **Create rule**.
2. Select the **Issue transitioned** trigger.
3. For **To status**, enter `In Progress`, then click **Save**.
    ![ACK Trigger.png](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/ffde7bfa-ce88-47ef-3d59-f125a12ccd00/md2x =576x212)
    ![ACK Trigger Detail.png](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/23087013-dbe7-465a-6633-0981d6051200/lg2x =613x281)
4. 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.
5. Add a `THEN` action and select **Send web request**.
    ![ACK Action.png](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/20f3da1a-9dcf-4c58-69ff-f7760dd22800/md2x =605x210)
6. Configure the web request:  
      
    **Web request URL**: `https://uptime.betterstack.com/api/v2/incidents/{{incident_id}}/acknowledge`  
    **Headers**: `Authorization: Bearer $TOKEN`  
    **HTTP method**: `POST`  
    **Web request body**: `Custom data`  
    **Custom data**: `{"acknowledged_by": "{{assignee.displayName}}"}`
[note]
### Don't have an API token yet?
See our guide on [obtaining an API token](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/).
[/note]
    ![ACK Web Request.png](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/c7aee67c-8f60-4ecd-b532-71f186eac900/lg2x =674x818)
1. (Optional) Add another `THEN` action to **Comment on issue**. For example: `The incident has been acknowledged by {{assignee.displayName}}.`
    ![ACK Another Action.png](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/bddf829a-ea83-47f7-4b2f-59ff06984200/public =591x219)

[success]
## That's all. 🎉
From now on, when a Jira issue is moved to "In Progress", the corresponding Uptime incident will be acknowledged.
[/success]

[info]
### Need help with the Jira integration?
Please message us at **hello@betterstack.com**. We will help you with all the necessary configurations.
[/info]
