You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Send the following Webhook content to the webhook url
curl -X POST \ -H 'Content-type: application/json; charset=utf-8' \ --data '{"attachments":[{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"Some content for the first block"}},{"type":"divider"},{"type":"section","text":{"type":"mrkdwn","text":"Another block"}},{"type":"actions","elements":[{"type":"button","text":{"type":"plain_text","text":"Button 1","emoji":true},"value":"click_me_123"}]}]}]}' \ https://mattermost-webhook-link.com/hooks/............
This works with all the examples/templates from the "block kit builder" page
Expected behavior
Here is a screenshot of what the webhook should look like on slack.
Observed behavior (that appears unintentional)
This screenshot shows, how the webhook is displayed by mattermost. The attachment part is displayed (visible by the box with the blue line on the left) but the content of the attachment block is completely missing. Blocks can also appear outside of the attachments block as it can be seen in the official block kit documentation.
The text was updated successfully, but these errors were encountered:
It works for my purposes, but I'll be glad to improve it if anyone has feedback. I'm especially interested to know what FOSS applications people are using that send webhooks in "block kit" format, so I can understand what message formats should be handled until Mattermost has official support.
Summary
Incoming webhook messages in the "new" slack block kit format are ignoring the block content
Steps to reproduce
curl -X POST \ -H 'Content-type: application/json; charset=utf-8' \ --data '{"attachments":[{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"Some content for the first block"}},{"type":"divider"},{"type":"section","text":{"type":"mrkdwn","text":"Another block"}},{"type":"actions","elements":[{"type":"button","text":{"type":"plain_text","text":"Button 1","emoji":true},"value":"click_me_123"}]}]}]}' \ https://mattermost-webhook-link.com/hooks/............
Expected behavior
Here is a screenshot of what the webhook should look like on slack.
Observed behavior (that appears unintentional)
This screenshot shows, how the webhook is displayed by mattermost. The attachment part is displayed (visible by the box with the blue line on the left) but the content of the attachment block is completely missing. Blocks can also appear outside of the attachments block as it can be seen in the official block kit documentation.
The text was updated successfully, but these errors were encountered: