Open
Description
What would you like to see!
When Outgoing webhook gets triggered by some condition, it would be needed to optionally save response / part of response somewhere in alert group. Ideally it would use same Jinja2 templating function that other components are using.
Example
When alert group is created, it triggers Outgoing webhook to 3rd party ticketing system and response looks like:
{
"ticketId": "9asd0wjls"
}
There would be something like Response template where you'd specify Jinja2 similar to:
my_ticket_id: {{ response.ticketId }}
The result would be updated alert group:
{
...
"alert_group": {
"some_custom_prop": {
"my_ticket_id": "9asd0wjls"
}
},
...
}
Now when alert group gets resolved, another Outgoing webhook can be triggered to 3rd party system updating ticket:
{
"ticketId": "{{ alert_group.some_custom_prop.my_ticket_id }}",
"notes": "Ticket updated"
}
Product Area
Alert Flow & Configuration
Anything else to add?
No response