Mattermost Webhook

503 views
Skip to first unread message

in...@lundp.de

unread,
Jul 15, 2016, 9:19:16 AM7/15/16
to taigaio, Ka...@lundp.de
Hey,

anyone ever set up a webhook for mattermost?
When I use the intergrated webhook of Taiga the webhook always returns:

error-in-request: Exceeded 30 redirects.

From the mattermost documentation on how to set up incoming webhooks:

To get the message posted into Mattermost, your integration will need to create an HTTP POST request that will submit to the incoming webhook URL you created before. The body of the request must have a payload that contains a JSON object that specifies a text parameter. For example, payload={"text": "Hello, this is some text."} is a valid body for a request

The test payload of Taiga looks like this:
{"by":{"id":6,"username":"...","full_name":"...","photo":"https://.../media/user/7/a/e/b/69e....jpg","gravatar_url":"//www.gravatar.com/avatar/8?size=80","permalink":"...."},"data":{"test":"test"},"date":"2016-07-15T12:28:26.775Z","type":"test","action":"test"}

So I guess that the webhook fails because mattermost is receiving a wrong payload when the webhook fires.
Is there any way to adjust the payload content to the needs of mattermost?

Alejandro Alonso

unread,
Jul 18, 2016, 1:56:34 AM7/18/16
to in...@lundp.de, taigaio, Ka...@lundp.de
Hello!,

You can find all the information about the payloads generated by webhooks here: http://taigaio.github.io/taiga-doc/dist/webhooks.html, that format can't be customized for mattermost.

I've checked that mattermost should work if the slack integration works, did you try configuring the slack integration for your project instead of webhooks?: https://tree.taiga.io/support/contrib-plugins/slack-integration/

Regards,


--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/e740122b-9bac-4a10-bcd7-a25ccf87e8ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

  
Alejandro Alonso Fernández
CIO & Co-founder
www.kaleidos.net/FC8EAC/

in...@lundp.de

unread,
Jul 18, 2016, 2:12:47 AM7/18/16
to taigaio, in...@lundp.de, Ka...@lundp.de
Hey Alejandro,

wanted to try this but I can't find the 'contrib-plugin' section in my admin tab. I searched in "http://my.domain.com/admin"/Djangointerface and on any project admin settings.
Is there some plugin that needs to be installed first before I can configure the contrib-plugins?

Alejandro Alonso

unread,
Jul 18, 2016, 2:14:48 AM7/18/16
to in...@lundp.de, taigaio, Ka...@lundp.de
Yes!,

You must install the taiga-contrib-slack plugin -> https://github.com/taigaio/taiga-contrib-slack (sorry I assumed you were using our own instance).

Regards,


For more options, visit https://groups.google.com/d/optout.

in...@lundp.de

unread,
Jul 18, 2016, 3:12:08 AM7/18/16
to taigaio, in...@lundp.de, Ka...@lundp.de
Hey,

struggling with that docu a bit.

Production env



Taiga Back



In your Taiga back python virtualenv install the pip package taiga-contrib-slack with:



  pip install taiga-contrib-slack


When installing Taiga I followed the production documentation. How do I 'reenter' the virtualenv?

Alejandro Alonso

unread,
Jul 18, 2016, 3:14:39 AM7/18/16
to in...@lundp.de, taigaio, Ka...@lundp.de
"workon taiga" should do the trick ;)

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

in...@lundp.de

unread,
Jul 18, 2016, 3:38:40 AM7/18/16
to taigaio, in...@lundp.de, Ka...@lundp.de
Thanks Alejandro,

works like a charm.

Alejandro Alonso

unread,
Jul 18, 2016, 3:40:44 AM7/18/16
to Christoph Kaun, taigaio, Ka...@lundp.de
Great!, you are welcome ;)

2016-07-18 9:38 GMT+02:00 <in...@lundp.de>:
Thanks Alejandro,

works like a charm.

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages