Opsgenie JSON field data is parsed as an object.

XMLWordPrintable

    • 1
    • Minor

      Issue Summary

      When sending JSON details data from Opsgenie to JSM and setting the details into a text field it will be parsed as an object instead of a JSON.

      Steps to Reproduce

      1. Create an integration where an alert opens new Incident ticket in JSM
      2. Send a JSON object as "Details" into the alert.
      3. Populate a text field in the JSM ticket with the "Details"

      Example payload:

      {
          "message":"API Test",
          "details":
          {
              "snap_url": "https://p.datadoghq.com/snapshot/view/dd-snapshots-prod/org_2305/2014-07-23/examplepng",
                  "group": "guruop",
                  "name": "aws.dynamodb.returned_item_count",
                  "type": "metric alert",
                  "group_key": "key5",
                  "query":"min(last_5m):avg:system.cpu.idle{*} < 99",
                  "message": "@opsgenie-service_1",
                  "org_id": 2305,
                  "id": 59482,
                  "metric": "system.cpu.idle"
      
          }
      }
      

      Expected Results

      The JSM Ticket should present the following data:

      Actual Results

      Workaround

      Adding a space before the "details" makes JSM parse the data properly:

            Assignee:
            Yavuz Guler
            Reporter:
            Mikhael Markov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: