Feature #5577

Add Watcher based on issue category

Added by Burt Culver almost 11 years ago. Updated about 3 years ago.

Status:NewStart date:2010-05-23
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-
Resolution:

Description

We'd like the ability to add certain people as watchers to issues in particular categories. The members should be able to unwatch if they choose. For example, user John wants to be added to all issues put into the "Marketing" category. When a new ticket is created in "Marketing" he should be added as a watcher and if a ticket is changed to "Marketing" he should be added as a watcher.

category_watchers_patch-20120202-trunk_r8748.patch Magnifier - patch for trunk r8748 (7.82 KB) Nayuta Taga, 2012-02-02 10:00

category_watchers_patch-20120202-tags_1.3.0.patch Magnifier - patch for tags/1.3.0 (7.96 KB) Nayuta Taga, 2012-02-02 10:00

category_watchers_patch-20120202-trunk_r8748-setting.png - screenshot: an issue category setting (7.28 KB) Nayuta Taga, 2012-02-02 10:01

category_watchers_patch-20120202-trunk_r8748-new_issue.png - screenshot: New issue (13.3 KB) Nayuta Taga, 2012-02-02 10:01

category_watchers_patch-20120602-trunk_r9748.patch Magnifier (20.8 KB) Nayuta Taga, 2012-06-02 10:40

category_watchers_patch-20120602-branches_1.4-stable_r9748.patch Magnifier (19.2 KB) Nayuta Taga, 2012-06-02 10:40


Related issues

Related to Redmine - Feature #6723: Auto-add default assignee of Issue category as a "watcher... New 2010-10-22
Related to Redmine - Feature #31826: Option to set the default watchers for each Category New
Duplicated by Redmine - Feature #7315: New Category - Watchers option feature request Closed 2011-01-13

History

#1 Updated by Brian Heasley over 10 years ago

+1

I'd like to see this feature expanded to allow a default watcher on all issues in a project as well.

#2 Updated by Nayuta Taga over 9 years ago

+1

related to #6723

#3 Updated by Terence Mill over 9 years ago

Very useful just in case a team is formed around a category, and in case someone goes to holiday and his collegque shal overtahe his works(new issues) for a category.
+1

#4 Updated by Nayuta Taga about 9 years ago

I wrote a patch for this problem.

In the issue category settings,
we can select default watchers for the category.
Then in the new issue,
default watchers are checked and hilighted according to the category.

#8 Updated by Terence Mill about 9 years ago

+1

#9 Updated by Anjali Hastha almost 9 years ago

Any updates for ver 1.4? I am having trouble with code in patch related to app/views/issues/_form.html.erb

#10 Updated by Nayuta Taga almost 9 years ago

Anjali Hastha wrote:

Any updates for ver 1.4? I am having trouble with code in patch related to app/views/issues/_form.html.erb

I am working for new versions. Please wait a minute.

#11 Updated by Nayuta Taga almost 9 years ago

Patches for Redmine 1.4.2 and trunk.

I fixed some bugs in my previous patches, and added some tests.

#12 Updated by Terence Mill almost 9 years ago

Thanks for this patch. Hoever i think watching and following notification (mail) for al by user readable attribites (as category) shall be configurable by every user himself.

See also #8241

#13 Updated by Nayuta Taga almost 9 years ago

Terence Mill wrote:

Thanks for this patch. Hoever i think watching and following notification (mail) for al by user readable attribites (as category) shall be configurable by every user himself.

You are right.
I notice that my patches are not fulfill what this ticket's reporter wanted to do.
They simply simulate Bugzilla's category default CC.
Please forget them, sorry.

#14 Updated by an an over 7 years ago

app/views/watchers/_new.html.erb

<% form_remote_tag :url => {:controller => 'watchers',
                             :action => (watched ? 'create' : 'append'),
-                            :object_type => watched.class.name.underscore,
+                            :object_type => (watched_type ? watched_type.name.underscore : watched.class.name.underscore),

When create new issue, click Search for watchers to add and it does not add to the list.
And it does not work stable with redmine_anonymous_watchers plugin

#15 Updated by Luís Fontes over 6 years ago

I've just created a plugin to do it.
Hope it helps you

http://www.redmine.org/plugins/redmine_category_watchers

#16 Updated by Fred B about 3 years ago

Any idea how to get that working on Redmine 2.4.3?

#17 Updated by Go MAEDA over 1 year ago

  • Related to Feature #31826: Option to set the default watchers for each Category added

Also available in: Atom PDF