Hey folks,
I am migrating New Relic Notification Channels to Workflows and I have a webhook payload for OpsGenie V2 API KEY integration.
Most of the values are coming through but the hard-coded one is not. I put it in bold.
In OpsGenie, I wanted this value to be in the Entity Field. How can I do that? How should I put it? I've been wrapping up my head around this, please help
{
"issue_id": {{ json issueId }},
"message": {{ json annotations.title.[0] }},
"details": {
"self_url": {{ json issuePageUrl }},
"state": {{ json state }},
"is_correlated": {{ json isCorrelated }},
"created_at": {{ createdAt }},
"updated_at": {{ updatedAt }},
"activated_on": {{ activatedAt }},
"closed_at": {{#if issueClosedAtUtc}} {{ json issueClosedAtUtc }} {{else}}"None"{{/if}}
},
"incident_ids": "{{#each incidentIds}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
"priority": {{#contains "P1" accumulations.policyName.[0]}} "P1" {{else}} {{#contains "P3" accumulations.policyName.[0]}} "P3" {{else}} "P5"{{/contains}} {{/contains}},
"customPriority": {{#contains "P1" accumulations.policyName.[0]}} "P1" {{else}} {{#contains "P3" accumulations.policyName.[0]}} "P3" {{else}} "P5"{{/contains}} {{/contains}},
"appAbbr": "THIS VALUE RIGHT HERE",
"owner": "NewRelic",
"impactedEntities": {{json entitiesData.names}},
"totalIncidents": {{json totalIncidents}},
"state": {{ json state }},
"trigger": {{ json triggerEvent }},
"isCorrelated": {{ json isCorrelated }},
"createdAt": {{ createdAt }},
"updatedAt": {{ updatedAt }},
"sources": {{ json accumulations.source }},
"alertPolicyNames": {{ json accumulations.policyName }},
"alertConditionNames": {{ json accumulations.conditionName }},
"workflowName": {{ json workflowName }}
}