Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bi-directional updates for third-party integrations in Opsgenie

Summary

When using any Opsgenie Integration that is separate from the Atlassian Integrations (Jira Software, Jira Service Management, etc.) you only have the ability to send updates to Opsgenie, not from Opsgenie as well. So how do we work around this scenario?

We can use Webhooks!

Webhooks allow you to send information to a third-party platform, such as a webserver, as long as the URL is accessible from the Web.

The webhook data includes the alert activity (create, acknowledge, etc.) as well as a subset of alert fields (such as the alert ID, username, alias, etc.) which can also include custom headers to add to the Webhook call. 

How to access Opsgenie

For your JSM Users to access Opsgenie you can either:

  • Navigate to the Service Project: go to Project Settings > Features and click on either Alerts By Opsgenie - or - On-call By Opsgenie. This will open up your Opsgenie site in a new tab. Please see the top screenshot for reference.
    • If you were to enable the Alerts By Opsgenie Feature in your Service Project you will then able able to access your Opsgenie site from the front of the Service Project by clicking the Alerts button, which will open Opsgenie in a new tab. Please see the bottom screenshot for reference.
  • Navigate to your site using: https://yourdomainname.app.opsgenie.com/ , however, this may not work as expected as some site names do include a "1" at the end of the domain name, such as: "https://yourdomainname1.app.opsgenie.com/". Feel free to test with either domain name setup to open your Opsgenie instance directly.

Same steps as mentioned here:

Create a new integration

  1. Once you are logged into your site, navigate to the Settings > Integrations page or from Teams > Integrations and click Add Integration.
    1. Please note that this can be a Team or Global level integration, depending on your JSM/Opsgenie plan and also is not required to be assigned to a Team. This is because this is being used for "Outgoing" Alert information from Opsgenie.
  2. Search for 'Webhook' in the search bar and select that integration
  3. Select Add Alert Description and Add Alert Details to the Payload
  4. Choose the Opsgenie to Webhook Actions you want to use
  5. Add any Alert Filters (using conditions) to the Integration so that it will only send out the info to the Webhook from Opsgenie when it meets those conditions.
  6. Add the Webhook URL from the third-party integration
  7. Save the Integration and feel free to test it out! :) 

Screenshots of setup and end result with a test webhook example

Screenshot 2023-05-04 at 9.50.38 AM.pngScreenshot 2023-05-04 at 9.47.08 AM.png

Relevant documentation to this configuration:

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events