# Jira + Instatus

Source: https://instatus.com/help/integrations/jira

1. Go to [Instatus Jira Integration](https://dashboard.instatus.com/integrations/jira)
2. Select the templates to use when creating and resolving automated incidents
3. Copy your page&apos;s webhook URL
4. In your Jira dashboard, go to your Space Settings → Automation → Create rule → Create from scratch

![Jira Space Settings Automation](https://instatus.com/help/integrations/jira-1.png)

![Jira Create rule from scratch](https://instatus.com/help/integrations/jira-2.png)

To apply automation rules to all spaces, you need to switch to _Global administration_ and apply the same following rules:

5. Create a rule to create incidents when Jira issues are created

Add a trigger → search & choose _Work item created_

![Jira Work item created trigger](https://instatus.com/help/integrations/jira-3.png)

6. Click _Add condition_ then choose _Work item fields condition_. Select the Field to be _Issue type_ and the value to be an issue type of your choice. You can create a new issue type for this purpose.

![Jira Work item fields condition for Issue type](https://instatus.com/help/integrations/jira-4.png)

7. Add a new action component and choose _Send web request_

8. Paste the webhook URL from step 1 in the request URL field. Choose the `POST` HTTP method and select Custom data for the request body & paste the following:

```json
{
  "trigger": "down"
}
```

![Jira Send web request action with POST method](https://instatus.com/help/integrations/jira-5.png)

9. Make sure that the Actor for this automation rule is set to _Automation for Jira_ to avoid any permission issues. You can check this in Rule details → Actor

10. Click next → Turn on rule & give it a name

We have created the create incident rule. Now, let&apos;s create the
resolve incident rule:

11. Add a trigger → search & choose _Work item transitioned_ → set the To status to be _Done_ or any status that indicates resolution

![Jira Work item transitioned trigger with Done status](https://instatus.com/help/integrations/jira-6.png)

12. Click add condition then choose Work item fields condition. Select the
    Field to be _Issue type_ and the value to be the same as the
    issue type used in the create incident rule (Step 6)

![Jira Issue type condition](https://instatus.com/help/integrations/jira-7.png)

13. Add an action component and choose _Send web request_

14. Paste the same webhook URL from step 1 in the request URL field. Choose the `POST` HTTP method and select Custom data for the request body & paste the following:

```json
{
  "trigger": "up"
}
```

![Jira Send web request action for resolve incident rule](https://instatus.com/help/integrations/jira-8.png)

15. Make sure that the Actor for this automation rule is set to _Automation for Jira_ to avoid any permission issues. You can check this in Rule details → Actor

16. Click next → Turn on rule & give it a name. That&apos;s the resolve incident rule created.

You&apos;re done! 🎉
