Mattermost, Inc.

Mentions in attachment

Can someone help me, how to send mentions via Webhooks in attachment? The mention is ok if the payload is but if it is a text field in an attachment it is not working. Is it a known issue or what am i missing?

This is where the mentioning is ok:

{
  "text": "Hello <!all>",
  "attachments": [
    {
      "color": "good",
      "fields": [
        {
          "title": "Title",
          "value": "Value",
          "short": true
        }
      ]
    }
  ]
}

And this is not working properly:

{
  "attachments": [
    {
      "text": "Hello <!all>",
      "color": "good",
      "fields": [
        {
          "title": "Title",
          "value": "Value",
          "short": true
        }
      ]
    }
  ]
}

Hi @Kemy!

I believe we don’t support this yet - there is a feature idea open for this, please feel free to upvote it! If you’re interested in implementing, please say so and we’ll prioritize the review.

A community member also added an alternative workaround for this some time ago.

I think there’s a Jira ticket here to track: https://mattermost.atlassian.net/browse/MM-10957