JSM/OpsGenie: Create an alert/Incident in OpsGenie when an incident is marked as Major in Jira Service Management
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
In some use cases customers might need to trigger alert creation in OpsGenie only when Jira Service Management incidents are marked as major. Since the alert filters for create action doesn't contain filters specific to Jira fields it is currently not possible to achieve that scenario hence, this knowledge base was created to provide a workaround for the same.
Solution
- Configure Email integration in OpsGenie
- Login to your OpsGenie site URL.
- Go to Teams & select the owner team > Integrations > Add Integration > Email > Save Integration.
- Copy the email address provided by the integration to use it in Step 2.
- Configure an automation rule in Jira Service Management to detect Major Incident field changes
- Go to your Service project Project Settings > Automation > Create rule:
- Trigger - Field value changed > Fields to monitor for changes = Major incident > Change type = Value Added.
- Action - Send Email and in the to address add the email address copied from OpsGenie email integration in Step 1.
Optional
- Configure Incident Rules to automatically create OpsGenie incidents when Jira incident is marked as major
Note
Incident rules are available on Opsgenie’s Enterprise and Standard plans.
If you’re using Opsgenie as part of your Jira Service Management, incident rules are available on Jira Service Management’s Premium and Enterprise plans.
- Login to your OpsGenie site URL.
- Go to Teams & select the owner team > Incident Rules > Create Incident Rule.
- Add an alert filter to match only the alerts coming from the configured automation rule, ex:
- If Details (Key-Value Based) > From = automation@xxxxx.atlassian.net
- Click Create.
To get automation rule email address check the From address for Send Email action in automation: