Plugin Custom Redmine_Custom_Workflows (Email, Watchers list), Custom email notification
I have a question regarding manipulating the watchers list.
I would like to send users emails when a custom field has a certain value. At the moment my best idea is to use the Custom Workflows plug in and check if the value is set and than add them to the watchers list. Does someone know if is possible to manipulate the watchers list? or is it even possible to send a mail direly via the Custom Workflows plug in ?
If there are other ways to gain an custom email notification, I would also be happy to learn about it.
thank you in advance for your help
RE: Plugin Custom Redmine_Custom_Workflows (Email, Watchers list), Custom email notification - Added by Philip Lapczynski over 5 years ago
I am looking to do the same thing. I have three custom fields that have users in them. I would like to automatically add all the entries in my "user" type custom fields as watchers.
There is a way to do it via the REST api. There must be a way to do it via ruby also.
RE: Plugin Custom Redmine_Custom_Workflows (Email, Watchers list), Custom email notification - Added by @ go2null almost 5 years ago
With Custom Workflows plugin, here is a sample to add the current user to the Watchers.
def add_project_user_as_watcher(user = User.current) if addable_watcher_users.include?(user) self.add_watcher(user) unless watched_by?(user) end end if subject.present? add_project_user_as_watcher end