Workflow Failure Alert Webhooks for OpsGenie

ChingizK
New Contributor III

I'm trying to set up a Workflow Job Webhook notification to send an alert to OpsGenie REST API on job failure. We've set up Teams & Email successfully.

We've created the Webhook 

Screenshot 2024-04-12 at 1.15.33 PM.png

and when I configure "On Failure" I can see it in the JSON/YAML view.

Screenshot 2024-04-12 at 1.17.27 PM.png

 However, OpsGenie expects the payload to be in a specific format and I also want to append additional info regarding the job with the payload. Where can I configure this?

The documentation HERE shows an example payloads that are sent, but that's not what OpsGenie is expecting.

Any clarification on this is highly appreciated!