Stored script on Alert condition and action

Hello everybody,

I’ve created two stored scripts: “link_trigger” and “link_message_template” and I’m trying to call these stored scripts from my Alert condition and Action:

But, when I try to execute the monitor, I got the error: “Invalid script language. Allowed languages are [painless]”

I tried to put and invalid script id, for tests purpouse, and I got the same error. I think elastic alert is not accessing correctly the stored scripts.

Can someone help me? Thanks
Elastic version: 7.4.2