Jira + Instatus

  1. Go to Instatus Jira Integration
  2. Select the templates to use when creating and resolving automated incidents
  3. Copy your page's webhook URL
  4. In your Jira dashboard, go to your Space Settings → Automation → Create rule → Create from scratch
Jira Space Settings Automation
Jira Create rule from scratch

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

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

Add a trigger → search & choose Work item created

Jira Work item created trigger
  1. 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
  1. Add a new action component and choose Send web request

  2. 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:

{
"trigger": "down"
}
Jira Send web request action with POST method
  1. 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

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

We have created the create incident rule. Now, let's create the resolve incident rule:

  1. 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
  1. 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
  1. Add an action component and choose Send web request

  2. 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:

{
"trigger": "up"
}
Jira Send web request action for resolve incident rule
  1. 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

  2. Click next → Turn on rule & give it a name. That's the resolve incident rule created.

You're done! 🎉