Hello,
When I send a POST Payload for the Alert API, the Priority and Tags do not seem to appear correctly with the alert.
Description, Responders etc. work fine.
If I put anything other than P1..P5 for priority it will fail to validate, however the priority of the alert is always showing as P1 (docs say default is P3) and the alert priority I have entered appears as a *tag* in the alert, and my actual tags I post do not appear at all.
Headers:
{"Content-Type":"application/json","Authorization":"GenieKey <api key>"}
Payload:
{
"description": "This is a test alert",
"alias": "test_alerts",
"visibleTo": [
{
"id": "Facilities",
"type": "team"
}
],
"message": "System Test Alert",
"priority": "P5",
"responders": [
{
"id": "Facilities",
"type": "team"
}
],
"tags": [
"tag1",
"tag2"
]
}
Resulting Alert:
Any tips as to why it is doing this would be greatly appreciated!
Welcome to the Atlassian Community.
The issue seems to be related to the API mapping made on Opsgenie interface. To verify that, please open your Integration, select the API you created and check the "Create Alert" fields mapping. If you want further help, please paste a screenshot of this section.
Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.
Regards,
Eugenio
Thank you, I looked in the integration and it was setting the alert level to P1 in there, ignoring my setting in the payload.
Thank you for the tip!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.