Incoming WebHooks, link_names and usernames with dot (.)

594 views
Skip to first unread message

Michał Bojarski

unread,
Feb 21, 2014, 10:25:09 AM2/21/14
to slac...@googlegroups.com
Hi,
I can't seem to work out why linking usernames with dot like user.name does not work with incoming webhooks...

Any idea how to make this work?

andrew moch

unread,
Feb 21, 2014, 3:23:43 PM2/21/14
to slac...@googlegroups.com
are you putting quotes around it? 

USERNAME="first.last"

Myles Grant

unread,
Feb 22, 2014, 2:15:22 AM2/22/14
to Michał Bojarski, slac...@googlegroups.com
Mind sending the full payload you're using (minus the token)? It sounds like you're referring to linking names within the text, which might be a bug on our side, but I need the payload to be sure.

-Myles

--
You received this message because you are subscribed to the Google Groups "Slack API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to slack-api+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Michał Bojarski

unread,
Feb 22, 2014, 3:23:48 PM2/22/14
to slac...@googlegroups.com, Michał Bojarski
My test payload is:
{"text":"Tes...@michal.bojarski","channel":"#chnl","username":"Uname","link_names":"1","icon_emoji":":mailbox_with_mail:","unfurl_links":false,"attachments":[null]}

I post this to https://xxx.slack.com/services/hooks/incoming-webhook?token=hjhjvfhvhgkfkghsbhj. Message apears on channel, but username is not linked, like this:
http://screencast.com/t/olYdU6jr9oYG

Michał Bojarski

unread,
Feb 22, 2014, 3:25:40 PM2/22/14
to slac...@googlegroups.com, Michał Bojarski
{"text":"Testing @michal.bojarski","channel":"#chnl","username":"Uname","link_names":"1","icon_emoji":":mailbox_with_mail:","unfurl_links":false,"attachments":[null]} (something removed space between username and text)


W dniu sobota, 22 lutego 2014 21:23:48 UTC+1 użytkownik Michał Bojarski napisał:
My test payload is:
{"text":"Testing@michal.bojarski","channel":"#chnl","username":"Uname","link_names":"1","icon_emoji":":mailbox_with_mail:","unfurl_links":false,"attachments":[null]}

Myles Grant

unread,
Feb 22, 2014, 4:00:19 PM2/22/14
to Michał Bojarski, slac...@googlegroups.com
Thanks Michal!

Confirmed the bug and just pushed a fix!

-Myles

Michał Bojarski

unread,
Feb 23, 2014, 12:33:31 PM2/23/14
to slac...@googlegroups.com, Michał Bojarski
Could you please fix this also in attachements fields?

Michał Bojarski

unread,
Feb 26, 2014, 6:14:57 AM2/26/14
to slac...@googlegroups.com, Michał Bojarski
Here's screenshot of problem: http://screencast.com/t/PdBthIFrKZHp
Reply all
Reply to author
Forward
0 new messages