Stored script on trigger condition


It’s possible to use stored scripts on Opendistro trigger condition?
I was trying to use it, but I got error “Invalid script language”.

On queries, stored scripts works well.


Can you show how you’re getting to this error? Is this a painless script?

Yes, it’s a painless script. Below some print screens of my process to get the error.