Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

https://support.atlassian.com/jira-service-management-cloud/docs/integrate-with-magentrix/

What does the integration offer?

Compass provides a powerful bidirectional integration with Magentrix. Use the Magentrix integration to create an alert in Compass 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 the robust on-call configurations and routing rules in Compass.

How does the integration work?

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

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

  • When the case status is changed to “Active” in Magentrix Customer Portal, the alert is acknowledged in Compass.

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

Set up the integration

Magentrix is a bidirectional integration. Setting it up involves the following steps:

  • Add a Magentrix integration in Compass

  • Map alert actions

  • Configure the integration in Magentrix

Add a Magentrix integration

Info

If you're using the Standard plan in Compass, you can add this integration only from your team’s operations page. Adding an integration from your team’s operations page makes your team the owner of the integration. This means Compass only assigns the alerts received through this integration to your team.

To add a Magentrix integration in Compass, complete the following steps:

  1. Go to your team’s operations page.

  2. On the left navigation panel, select Integrations and then Add integration.

  3. Run a search and select “Magentrix”.

  4. On the next screen, enter aname for the integration.

  5. Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.

  6. Select Continue.
    The integration is saved at this point.

  7. Expand the Steps to configure the integration section and copy the API key.
    You will use this key while configuring the integration in Magentrix later.

  8. Select Turn on integration.
    The rules you create for the integration will work only if you turn on the integration.

Configure the integration in Magentrix

To configure the integration in Magentrix, complete the following steps:

For incoming

  1. In Magentrix, expand Develop on the left menu.

  2. Select Classes & Triggers.

  3. Select New.

  4. Select Trigger > Next.

  5. Select Case (Force) for the entity field and select Next.

  6. Enter “JsmAlertTrigger” for Name.

  7. Select 3.0 for Version.

  8. Select Save.

  9. Copy the content of this file into the Magentrix UI editor.

  10. Paste the API key you copied while adding the integration in Compass into JSM_API_KEY field.

  11. Select Save.

For outgoing

  1. For Magentrix Subdomain, enter the subdomain of your Magentrix instance.
    For example, if your Magentrix URL is https://test.magentrixcloud.com , enter “test” into the field.

  2. For Magentrix Username, enter your Magentrix username.

  3. For Magentrix Password, enter your Magentrix user password.

Map alert actions

You can define action mappings between Compass actions and Magentrix actions. You can also do the mappings for when the source of the alert is not Magentrix (that is, when the alert is created by another integration). You can select from a list of Compass actions for the mapping.

Note

If the case type is not specified, its value is set to "Problem" by default.

Configure Magentrix trigger for customized fields

To use the custom fields in Compass alerts, customize the Magentrix trigger. In a trigger, there are 10 editable custom fields. These fields are defined but not initialized. You can send custom fields in the payload by completing the following steps:

  • Select custom fields by doing Magentrix initialization.
    The custom fields are already added to the payload. When you initialize fields, they are sent to Compass.

  • To add custom fields to Compass alert, expand the Incoming section and add alert rules as needed.

Sample payload sent from Magentrix

(in JSON format)

Code Block
{
"caseId": "5002600000DHQfbACH",
"caseDescription": "Sample case description",
"severity": "S3 - Medium",
"caseNumber": "00314044",
"description": "Sample description",
"priority": "Medium",
"subject": "[JSM] 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"
}