Hello,
I am trying to migrate from Opsgenie to JSM/Operations for alert management, and I am encountering a problem.
I have set up the integration, and I am able to automatically create alerts when a customer creates a ticket in JSM.
During alert creation, I would like to access the content of the JSM "work item" to retrieve information stored in custom fields.
To do this, I am using the following syntax:
{{_payload.customFields.customfield_00000}}This works correctly in most cases.
I have a problem with a Select List (single choice) custom field, from which I am trying to retrieve the value.
The JSON looks like this:
_customfield_00000:
self:
https://xxx.atlassian.net/rest/api/2/customFieldOption/11111
id:
11111
value:
AAA
The syntax:
{{_payload.customFields.customfield_00000.id}}returns
11111
But the syntax
{{_payload.customFields.customfield_00000.value}}does not return “AAA” as I would like, but
“{”self“:”https://xxx.atlassian.net/rest/api/2/customFieldOption/11111“,”value“:”AAA“,”id“:‘11111’}”
Do you have any idea what I'm doing wrong?
Thank you very much for your help.