Feature #5159
Ability to add Non-Member watchers to the watch list
| Status: | Closed | Start date: | 2010-03-23 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Jean-Philippe Lang | % Done: | 0% | |
| Category: | Issues | |||
| Target version: | 1.4.0 | |||
| Resolution: | Fixed |
Description
We currently have over 4,000 employees in our company. We would like the ability to add a watcher to the list without having to add them to the actual project. Since there are over 30 projects currently in our system maintaining a watcher list is becoming a nightmare because the project managers are having to constantly add the employees to the reporter list so that they can be added to the watch list.
Related issues
Associated revisions
Ability to add non-member users as watchers (#5159).
Ability to add non-member watchers on issue creation (#5159).
generate i18n "label_search_for_watchers" key (#5159)
History
#1 Updated by Jon Lumpkin about 3 years ago
+1
#2 Updated by Stephen Fuhry about 3 years ago
+1
#3 Updated by Stanislav German-Evtushenko about 3 years ago
It would be very nice!
#4 Updated by Stanislav German-Evtushenko about 3 years ago
I do workaround at the moment, but it's quite useless:
1. Add user to project.
2. Add him as watcher.
3. Remove user from project.
#5 Updated by Arnaud Martel about 3 years ago
I did a quick patch to fix this on my server. I'm pretty sure that Jean-Philippe and Eric will have a nicer solution but, in the meantime, this one works for me...
First, edit the file app/views/watchers/_watchers.rhtml and insert the following text at line 21:
<% if @project.is_public? %> <br>or email: <%= text_field 'email_watcher', :size => 80 %> <% end %>
you should have something like:
...
<p><%= f.select :user_id, (watched.addable_watcher_users.collect {|m| [m.name, m.id]}), :prompt => true %>
<% if @project.is_public? %>
<br>or email: <%= text_field 'email_watcher', :size => 80 %>
<% end %>
<%= submit_tag l(:button_add) %>
...
Next, edit the file app/controllers/watchers_controller.rb and insert the following text at the start of the new function (line 40):
if params[:email_watcher]
wuser = User.find_by_mail(params[:email_watcher][:size80])
if wuser
params[:watcher][:user_id] = wuser.id
else
raise
end
end
you should have something like:
...
def new
if params[:email_watcher]
wuser = User.find_by_mail(params[:email_watcher][:size80])
if wuser
params[:watcher][:user_id] = wuser.id
else
raise
end
end
@watcher = Watcher.new(params[:watcher])
...
Final step: restart your web server and it should work as you like...
#6 Updated by Enrique Delgado almost 3 years ago
+1
Aranaud: Okay so if I understand correctly, with your patch you can add a watcher based on the email, as long as that email matches a redmine user? How about any email address? More like a "CC" field? Maybe Jean-Philippe and Eric can consider this functionality...
#7 Updated by Arnaud Martel almost 3 years ago
You're right: with my patch, emails have to match a redmine user. As you have seen, redmine_cc_addresses plugin seems to be a better choice for you...
#8 Updated by Eric Seigne over 2 years ago
Did you see #6226 ?
#9 Updated by Jean-Philippe Lang over 1 year ago
- File add_watchers.png added
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 1.4.0
- Resolution set to Fixed
Feature added in r8592.
Watchers can now be added via a dialog box. It displays project members by default and you can use the search field to search for other users. Multiple users can be added at the same time.

#10 Updated by Jason Trahan over 1 year ago
Thank you very much. This will be a tremendous help.
#11 Updated by Jason Trahan about 1 year ago
- Status changed from Closed to Reopened
It appears I can only add the watchers after the ticket is created. It would be nice to be able to add them at the time of ticket creation.
#12 Updated by Terence Mill about 1 year ago
+1 to add groups as well
#13 Updated by Mischa The Evil about 1 year ago
#14 Updated by Jean-Philippe Lang about 1 year ago
- Status changed from Reopened to Closed
Jason Trahan wrote:
It appears I can only add the watchers after the ticket is created. It would be nice to be able to add them at the time of ticket creation.
Added in r9254.
#15 Updated by Fernando Hartmann 10 months ago
I don't understood how this work !
- Added one watcher user to a issue in with no permission on that project.
- Posted some update to a issue
- Users registered to that project received a email notification
- Other watcher user didn't received nothing
- User with no perms on the project didn't have access to a issue
How this feature is supposed to work ? Is there some docs about this ?
#16 Updated by Maxim Kim 9 months ago
This change caused a major problems at least for us.
We let our customers to add new issues and watchers. And now our customers can see other customer names, which is inacceptable!
Could you please add asap setting to switch off this feature.
My personal opinion is that right solution was to add permission "can be non-member watcher" as someone suggested earlier.
#17 Updated by Enrique Delgado 9 months ago
Arnaud Martel wrote:
You're right: with my patch, emails have to match a redmine user. As you have seen, redmine_cc_addresses plugin seems to be a better choice for you...
Just as a follow up: thanks Arnaud, I did end up going the redmine_cc_addresses route. I also like the new feature. Maybe to ease Maxim's concerns, some permissions need to be established so that some projects allow watchers from non-members, while some projects do not.
Thanks all for all your fine work.