altsol / redmine_mattermost

Mattermost notification plugin for Redmine
Other
66 stars 96 forks source link

customized routing to different Groups not possible? #16

Closed mr-gosh closed 7 years ago

mr-gosh commented 7 years ago

we have different groups in our Mattermost instance.

How can i route redmine messages to a channel in another group than the default one? can these IDs be used that are present in newer Mattermost Instances?

thanosk commented 7 years ago

Hello, have you tried using a project custom field named "Mattermost URL" (without quotes) on a per-project basis? 1st in your mattermost setup, you will generate all the "Incoming WebHook" URLs you need. Secondly, in redmine you will assign these different hook urls on a per-project basis.

mr-gosh commented 7 years ago

so this is necessary for different teams on the same mattermost instance? --Edit-- I now set up the "Mattermost URL" Custom field but recognized that i now have to enter this URL in EVERY Project.

It would be much better to have a default URL set in the Plugin and if the "MAttermost URL" Field is filled - than this different URL will be used...

thanosk commented 7 years ago

This is exactly how this works. The default URL setting can be found in Redmine -> Administration -> Plugins -> Redmine Mattermost (click Configure button to the right). Fill this URL and the channel below it as the default settings and it will work for all projects as default/global values. Then, for each project that you want different behaviour, you can fine-tune on a per-project basis via their own custom field settings.

mr-gosh commented 7 years ago

THX - it indeed works!