Replies: 5 comments
-
have you tried <% ctx().get('cmd') %> ? |
Beta Was this translation helpful? Give feedback.
-
thanks for reviewing. Actually i tried with the results that the parameters get not resolved: This is the payload that my rule is receiving: "message": "\"Recover named process workflow failed\"",
"data": {
"host": "<% ctx().get('host') %>",
"service": "<% ctx().get('service') %>",
"output": "<% ctx().get('output') %>",
"state": "<% ctx().get('state') %>", Really appreciate any help and let me know if further informations are needed. |
Beta Was this translation helpful? Give feedback.
-
sorry I can't help further, I don't use chatops :( |
Beta Was this translation helpful? Give feedback.
-
As far as I know, YAQL is not supported in the notification section. I tested notification with the following definition
As you can see the action parameter exists as an empty dictionary. This might be due to a bug in the runner. You could try creating a simple action using action-chains to see if the action parameters dictionary is filled in with the expected data. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I was able to access the parameters with action_parameters.<parameter_name>. Thank you for your support. Btw. i am not using it for chatops, but for other kind of notifications, like teams, mail or ticketing. have a nice week. |
Beta Was this translation helpful? Give feedback.
-
Hello all!
I have the followin workflow metadata:
Now i want to add the notify block below the metadata:
According to https://docs.stackstorm.com/chatops/notifications.html#jinja-templating-in-message-and-data i am allowed to use jinja templating. Now i want to use the values from the parameters, defined in the action workflow.
Example:
The notify rule got triggered but results in the error below:
Can somebody support here and knows how to reuse the values from the workflow parameter values?
Beta Was this translation helpful? Give feedback.
All reactions