hokkey / redmine_chatwork

A Redmine plugin to notify updates to ChatWork rooms
http://www.redmine.org/plugins/redmine_chatwork
MIT License
10 stars 15 forks source link

How to shorten the content of notification? #6

Closed khoi-thinh closed 6 years ago

khoi-thinh commented 6 years ago

Hi, I installed your plugin and it worked perfectly. There's one thing: I'd like to keep the notification in ChatWork to be short. For example, i want to remove the "By: Redmine Admin, Assignee: Redmine Admin, Author: Redmine Admin" part. Is that possible?

hokkey commented 6 years ago

@khoi-thinh: I agree those labels are redundant and I have understood too long messages appear if we send multiple notifications. But I think those labels are also needed to know the ticket state without reading the recent context. So I don't agree to remove them. I can add plugin options to control which labels to show in posts, but that is not simple. I don't want to add unnecessary detailed options.

Instead of that, I'm considering to move user labels to the outside of a header to also fix #5: image

khoi-thinh commented 6 years ago

Thank you. I edited your code in my Linux environment and it worked now.

hokkey commented 6 years ago

I got it. You can modify the header template for your environment. Thanks! https://github.com/hokkey/redmine_chatwork/blob/ea9941753ead2d3b48ad1b98ffb92abf94bb21b3/src/redmine_chatwork/lib/redmine_chatwork/listener.rb#L101