Replies: 5 comments
-
Notifications https://docs.stackstorm.com/chatops/notifications.html are supported and it's possible to use jinja templates for formatting the message. |
Beta Was this translation helpful? Give feedback.
-
@nzlosh not sure I understand how to use notifications to post a text snippet in slack. Can you provide some more detail or example on how to accomplish this? So basically this is what I'm looking for:
|
Beta Was this translation helpful? Give feedback.
-
If Slack snippets are some sort of special slack formatting, then you'll need to configure the action alias to send it. Unfortunately, I don't have any examples or more exact instructions. As a general guide, StackStorm has ways to pass extra parameters for Slack, see the documentation https://docs.stackstorm.com/chatops/aliases.html. These extra parameters are defined by the Slack API specification. To know the structures, look at Slack's API documentation https://api.slack.com/messaging/composing/layouts |
Beta Was this translation helpful? Give feedback.
-
@nzlosh figured out how to work around this by having the script post to slack instead. Related question what is the variable I can use to grab the username or channel on how the chatops alias was triggered from? I know the variable |
Beta Was this translation helpful? Give feedback.
-
Nevermind I figured it out. All good. |
Beta Was this translation helpful? Give feedback.
-
As you all already slack doesn't handle large amounts of text well.
Is there a way to for a stackstorm action / alias to output text to a text snippet in slack?
If so are there any guides on how to do this in the stackstorm alias?
Beta Was this translation helpful? Give feedback.
All reactions