Mattermost, Inc.

Message menus not working

Hi everyone,

I’ve read about the new feature Message menus but I’not being able to get it working…:

I am sending following json (like in the docs):

{
	"channel": null,
	"username": "Awesome-O-Matic",
	"icon_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Robot_icon.svg/2000px-Robot_icon.svg.png",
	"text": "Message Text Example",
	"attachments": [
    {
      "pretext": "This is the attachment pretext.",
      "text": "This is the attachment text.",
      "actions": [
        {
          "name": "Select an option...",
          "integration": {
            "url": "http://127.0.0.1:7357/action_options",
            "context": {
              "action": "do_something"
            }
          },
          "type": "select",
          "options": [
                  {
                      "text": "Option1",
                      "value": "opt1"
                  },
                  {
                      "text": "Option2",
                      "value": "opt2"
                  },
                  {
                      "text": "Option3",
                      "value": "opt3"
                  }
          ]
        }
      ]
    }
  ]
}

but getting just a button and not a menu

Capture

What am I doing wrong?

Hi @rgomez90! Are you on server version v5.4?

I’ve taken a look and no. I am using the one shipped with Gitlab and in my case I am using v5.2.2…but in the docs does not say anything about version constraints. So it only work for v5.4+?

Hi @rgomez90! The feature was added in v5.4 and I believe it works on that and later versions.