Watcher list on New Issue

Added by Gurvan Le Dromaguet about 6 years ago

I have about 200 reporters for my project in Redmine, and I want to avoid that when creating a new issue there are these 200 reporters as selectable watchers in the page. Can i Deactivate this ?

thanks

Replies (7)

RE: Watcher list on New Issue - Added by Terence Mill about 6 years ago

There is a plugin which will transform checkbox into drop-dwon list + "add button" which then is positioned at the the sidebar.

RE: Watcher list on New Issue - Added by Mischa The Evil about 6 years ago

Terence Mill wrote:

There is a plugin which will transform checkbox into drop-dwon list + "add button" which then is positioned at the the sidebar.

Can you provide a link to that plugin? I'm not aware of any plugin providing such feature...

RE: Watcher list on New Issue - Added by Mischa The Evil about 6 years ago

Gurvan Le Dromaguet wrote:

I have about 200 reporters for my project in Redmine, and I want to avoid that when creating a new issue there are these 200 reporters as selectable watchers in the page. Can i Deactivate this ?

Not with a vanilla Redmine. This should either be provided by a plugin or you can modify the Redmine core yourself.
To remove the issue-watcher selection on issues/new view, you need to remove (or comment out) lines 30-36 from source:/trunk/app/views/issues/_form.html.erb:

<% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>
<p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
<% @issue.project.users.sort.each do |user| -%>
<label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label>
<% end -%>
</p>
<% end %>

RE: Watcher list on New Issue - Added by Gurvan Le Dromaguet about 6 years ago

Thanks for your answers,
For the moment I have commented out the code you are suggesting to modify.
But I have more and more very dirty fix in my redmine and I am afraid it will become very hard to install the new releases ...

Maybe All this should come with the feature : http://www.redmine.org/issues/8050 where we want to select attributes to show depending on the workflow transition. Definitely the most awaited feature I think.

RE: Watcher list on New Issue - Added by Mischa The Evil about 6 years ago

Gurvan Le Dromaguet wrote:

But I have more and more very dirty fix in my redmine and I am afraid it will become very hard to install the new releases ...

I think that is a legitimate fear. You can however workaround that to a certain level by implementing changes within plugins.

Maybe All this should come with the feature : http://www.redmine.org/issues/8050 where we want to select attributes to show depending on the workflow transition. Definitely the most awaited feature I think.

I don't think so, cause it deals with the issue attributes and the issue watchers aren't attributes of issues. Nevertheless, I agree that it deals with an important feature.

RE: Watcher list on New Issue - Added by Terence Mill almost 6 years ago

There is a plugin which supports add watchers via combox after an issue is created.

redmine_boards_watchers

It is additional to watchers feature for boards.

(1-7/7)