Incoming webhook and @user


#1

Having used Hipchat and Mattermost, when we sent through a @user tag via the incoming webhook, if the hook had notify set, they would get a notification.

In Rocket.chat, this does not appear to be the case it just parses it as text instead of for the user.

Is there anything special we need to apply to the incoming hook so it tags the user or is this just not supported currently?


#2

Can you provide an example of what you are doing? I personally use the webhooks and have a few systems that mention me. So I know it works


#3

To keep it basic. We’ve tried putting @user in the “text” value for the example without any luck.

{
  "text": "Example message",
  "attachments": [
    {
      "title": "Rocket.Chat",
      "title_link": "https://rocket.chat",
      "text": "Mention @user",
      "image_url": "https://rocket.chat/images/mockup.png",
      "color": "#764FA5"
    }
  ]
}

Is there anything special that has to be done?


#4

Perfect. So the issue here is mentions are not parsed in the attachment. If they are in the text(message body) then they are parsed.


#5

I’ll test that.

If that is the case, any chance of adding support for attachment text to also be parsed?


#6

Anythings possible :grin:

Feature request in here: #feature-requests or open a PR adding it