To apply this to all projects, go to Global administration and create a global rule.
Explore documentation
Create an incident
Automatically create Uptime incidents from Jira by using our Incidents API and Jira Automation.
1. Create custom fields in Jira
To automatically acknowledge and resolve incidents in Uptime from Jira, you need to create two custom fields: incident_id and BU_incident_url.
- In Jira, go to Settings โ Issues โ Fields โ Custom fields.
- Click Create custom field.
- Select Short text (plain text only) and click Next.
- Name the field
incident_idand associate it with all screens. - Repeat the process to create a
BU_incident_urlfield.
2. Set up a Jira automation rule
In your Jira project, go to Project Settings โ Automation.
Click Create rule.
Select the Issue created trigger and click Save.
(Optional) Add a condition to specify when an incident should be created (e.g., for high-priority tickets).
Add a new action and select Send web request.
Configure the web request:
Web request URL:
https://uptime.betterstack.com/api/v2/incidents
Headers:Authorization: Bearer $TOKEN
HTTP Method:POST
Web request body:Custom dataCustom dataDon't have an API token yet?
See our guide on obtaining an API token.
Check the box to Delay execution of subsequent rule actions.
Add a new action and select Edit issue.
Set the
incident_idfield to{{webResponse.body.data.id}}.Add another field to set
BU_incident_urltohttps://uptime.betterstack.com/team/{{YOUR_TEAM_ID}}/incidents/{{webResponse.body.data.id}}.
That's all. ๐
From now on, a new Uptime incident will be created for each new Jira ticket that matches your conditions.
Need help with the Jira integration?
Please message us at hello@betterstack.com. We will help you with all the necessary configurations.