Watcher: List of recipients from stored script/template

Hello there!

I have configured several watchers in elastic version 7.0.1. In all watchers I have e-mail action with the same list of recipients.

I'd like to ask is there any possibility to include that list from stored script or template?
Alternatively, is there any possibility to load e-mail action from a stored template?

Thanks,
Mario

Hey,

so, your requirement does not work exact, but you could do a workaround: You could execute a chain input, which on the one hand executes your existing input, and on the other hand executes a search against an index (maybe just search for the id), and that single document contains all the recipients. This way the list of recipients would be available in the payload and you could use it.

--Alex

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.