Closed tanertas closed 4 years ago
I got response from redmine forum: https://www.redmine.org/boards/2/topics/59441
The code below works as expected:
if subject.present?
group = Group.find(21)
if User.current.is_or_belongs_to?(group)
group.users.each {|user| self.add_watcher(user) unless watched_by?(user)}
end
end
I want to accomplish this with this plugin: Check if a regular user member of a specific Group, if true, then add each member of the Group as watchers during issue creation.