altsol / redmine_mattermost

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

Fetch Issue Infos when issue mentioned #6

Open hwinkel opened 8 years ago

hwinkel commented 8 years ago

Mattermost could render Issue Infos if a Issue is mentioned in Attermost

thanosk commented 8 years ago

This is definitely a good idea. Have you seen any similar plugin project implementing this for some other issue tracker? It could be useful for borrowing some implementatoion characteristics and know-how.

At this moment this plugin sits on the Redmine side, traps its triggers and forwards them over to a Mattermost installation. What you're proposing is actually giving birth to a new project: a plugin sitting on the Mattermost side, trapping discussions containing the hash symbol ('#') plus a number and querying Redmine for Issue information.

Thinking out loud, as a first step this can be easily set up without writing any code, just using a Hubot with either hubot-matteruser or hubot-mattermost adapter and also using hubot-redmine. Would that fulfil your requirements perhaps? Can you give it a shot?

hwinkel commented 8 years ago

I have seen this in discourse where for mentioned github issues the infos are fetched.

Example: https://forums.rancher.com/t/best-practice-to-share-a-physical-host-on-multiple-environment/1940

My understanding from the feature description an Mattermost is that the Gitlab webhook already responses back markdown which then is being rendered in the Mattermost message like seen in slack.

http://www.mattermost.org/features/ see integrations