Summary
From doc over here i tried to create interactive message - but no luck.
mattermost version
Version: 5.5.0
Build Number: 5.5.0
Steps to reproduce
- Create Slash command with API call to return json with list of options
2.1) First try - API response return json body
{ "attachments": [ { "text": "Select segment to add", "actions": [{ "name": "Select an option...", "integration": { "url": "http://some_url/mattermost", "context": { "action": "setSegment" } }, "type": "select", "options": [ { "text": "Option1", "value": "opt1" }, { "text": "Option2", "value": "opt2" } ] }] } ] }
2.2) Second try - try to use responseUrl
URL to send message with attachment (same data)
-
Message creates; response gives 200 (if we use
responseUrl
) -
get message with attachments but without actual select
Expected behavior
UI should show something like this
Observed behavior
Instead i get this
Message with attachments, but actions are not working.(