Hello, We are trying to improve the title of the Opsgenie notifications.
We have a payload that is sent to Opsgenie, and we would like to include a field from this payload in the notification title. {{_payload.ProblemDetails.impactedEntities.get(0).entityId.type}}
However, we are finding it impossible to retrieve the (type) element in question. We followed this documentation: https://support.atlassian.com/opsgenie/docs/dynamic-fields-in-opsgenie-integrations/
We tried using regex expressions to extract this field from the payload, but the result was an empty field. We are also wondering if there is a limit on the number of characters in the title.
We noticed that when we used {_payload.ProblemDetails.impactedEntities.get(0).entityId.type}}, we received an error in Opsgenie, but when we used {_payload.ProblemDetails.impactedEntities.get(0)}, we got a result, although it was not usable in the title.
Can you tell us if it is possible to extract fields from a JSON object within the payload?