I'm sure I've seen this functionality in an example somewhere recently (maybe X-Pack examples?) but I can't seem to find it:
Is it possible to place a simple conditional in the Actions block, something like
if(businessHours){"notify-slack": "slack": {
"message": {
"to": [
"#day-channel"
],
}
} else if(onCallHours){"notify-slack": "slack": {
"message": {
"to": [
"#on-call-channel"
],
}
}
And can anyone point me to examples where it's used?