• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with Magentrix

This integration uses the Salesforce extension of Magentrix.

Megantrix logo

What does Opsgenie offer Magentrix users?

Opsgenie provides a powerful bidirectional integration with Magentrix. Use the Magentrix integration to create an alert in Opsgenie when a case is created in the Customer Portal and vice versa. This mirroring helps to aggregate alerts to the right people at the right time with Opsgenie’s robust on-call configurations and routing rules.

Functionality of the Integration

  • When a case is created in Magentrix Customer Portal, an alert is created in Opsgenie.

  • When a case is closed in Magentrix Customer Portal, the alert is closed in Opsgenie.

  • When the status of the case is changed to Active in Magentrix Customer Portal, the alert is acknowledged in Opsgenie.

  • When an alert is created in Opsgenie, a case is created in Magentrix Customer Portal.

Add Magentrix Integration in Opsgenie

You can add this integration from your team dashboard

If you're using Opsgenie's Free or Essentials plan, or if you’re using Opsgenie with Jira Service Management's Standard plan, you can only add this integration from your team dashboard as the Integrations page under Settings is not available in your plan.

Adding the integration from your team dashboard will make your team the owner of the integration. This means Opsgenie will assign the alerts received through this integration to your team only.

To do that,

  1. Go to your team’s dashboard from Teams,

  2. Select Integrations, and select Add integration.

Follow the rest of the steps to complete the integration.

  1. Go to Settings > Integrations. Search for Magentrix and select Add

  2. Specify who is notified of Magentrix alerts using the Responders field. Auto-complete suggestions are provided as you type.

  3. Copy the API key.

  4. Select Save Integration.

Configuration in Magentrix

  • In Magentrix, click on the user name in the top right.

  • Select Setup.

Magentrix customer portal setup
  • Select Develop from the left menu to expand it.

  • Select Classes & Triggers.

  • Click New.

Magentrix classes and triggers
  • Select the "Trigger" option, and click Next.

Magentrix choose class type
  • Select Case (Force) for the "Entity" field, and click Next.

Magentrix select entity
  • Type OpsgenieAlertTrigger into the "Name" field.

  • Select 3.0 as the Version.

  • Click Save.

Magentrix provide class information
  • Copy the content of this file into the editor.

  • Replace the part with the API key of the integration.

  • Click Save.

Magentrix active class

Opsgenie to Magentrix Integration

To create new cases from Opsgenie alerts use the Opsgenie to Magentrix section.

Fill the corresponding fields with Magentrix subdomain, username, and password.

Opsgenie to Magentrix integration

Action Mapping Feature

  • Opsgenie allows customers to define action mappings between Opsgenie actions and Magentrix actions.

  • Use this section to map Opsgenie actions to Magentrix actions when the source of the alert is NOT Magentrix (i.e When the alert is created by another integration.) The Opsgenie action doesn't have to be alert is created, it can be other actions as well.

Magentrix for other Opsgenie alerts

Case Type

If case type is not provided, its value will be set to "Problem" by default.

Configuration Magentrix Trigger for Customized Fields

If you need to use the custom fields in Opsgenie alerts, you need to customize the Magentrix trigger. In trigger, there are 10 custom fields that you can edit.These fields are defined but not initialized. You can send customized fields in payload by doing following steps:

  • You can select custom fields by doing Magentrix initializations. The custom fields are already added to payload. When you initialize fields they will be send to Opsgenie.

  • If you need to add custom fields to Opsgenie alert, please go to Advance Setting in Opsgenie Integration page and update filters or alert setting.

Sample Payload Sent from Magentrix

JSON

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 { "caseId": "5002600000DHQfbACH", "caseDescription": "Sample case description", "severity": "S3 - Medium", "caseNumber": "00314044", "description": "Sample description", "priority": "Medium", "subject": "[OpsGenie] Sample message", "caseType": "Problem", "ownerEmail": "sampleemail@sample.com", "caseStatus": "New", "accountName": "Sample Account", "assetName": "Sample Asset", "isEscalated": "TRUE", "escalatedBy": "0032600000dQcsPAAS", "customField1": "Sample Custom Field", "customField2": "Sample Custom Field", "customField3": "Sample Custom Field", "customField4": "Sample Custom Field", "customField5": "Sample Custom Field", "customField6": "Sample Custom Field", "customField7": "Sample Custom Field", "customField8": "Sample Custom Field", "customField9": "Sample Custom Field", "customField10": "Sample Custom Field" }

 

Additional Help