Feature #14339

Shortened issue watcher

Added by Daniel Felix over 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Issues
Target version:-
Resolution:Duplicate

Description

Hi there,

in our company, we are using many users per project. This list could be a mess, even if it is sorted by first/lastname.

I created a patch which hides the watchers by default if they reach a given limit.
The patch provides also some javascripts for a quickfilter of the watcher list.

Maybe you want to take a look at it.

Best regards,
Daniel

jquery_function.diff Magnifier - jquery function for searching the watchers (902 Bytes) Daniel Felix, 2013-06-24 15:52

struct_and_translations.diff Magnifier - structural changes on issues/new.hmtl.erb and translations (43.5 KB) Daniel Felix, 2013-06-24 15:52

redmine_watcher_search.png - Screenshot after patch apply (5.15 KB) Daniel Felix, 2013-06-24 15:54


Related issues

Related to Redmine - Patch #15833: Watchers checkboxes are now being hidden by default Closed
Duplicates Redmine - Feature #8562: Watchers list too big in new issue form Closed 2011-06-08

History

#1 Updated by Todd Hambley over 4 years ago

+1

Works better with additional filter to remove class 'visible'

function findWatchers(checking,searchtext){
  if(checking.text().toLowerCase().indexOf(searchtext) > -1){
    checking.removeClass("hidden").addClass("visible");
  }
}

$(document).ready(function(){
  $('#watchers_filter').keyup(function(e){
    var searchtext = $(this).val().toLowerCase();
    var elements = $('#watchers_inputs > label');

    elements.not('.hidden').addClass('hidden');
    elements.filter('.visible').removeClass('visible'); // <- inserted line
    elements.each(function(){
      findWatchers($(this),searchtext);
    })
  });

  $('#mark_all_watchers').click(function(){
    $('#watchers_inputs > label').not('.hidden').children('input:checkbox:not(:checked)').attr('checked','checked');
  });
});

#2 Updated by Daniel Felix about 4 years ago

Yes this would be good through. :-)

#3 Updated by Daniel Felix almost 4 years ago

  • Related to Patch #15833: Watchers checkboxes are now being hidden by default added

#4 Updated by Jean-Philippe Lang almost 4 years ago

  • Assignee set to Jean-Philippe Lang

Having a watcher search field on the issue form (for members) and an other when clicking "Search for watchers" (for all users) is a bit awkward IMHO.

When there are many members, another solution would be to simply not display the checkboxes by default on the issue form and let the user search for watchers through the modal window. And maybe improve this windows by adding an option "members/all users" and displaying members only by default. What do you think?

#5 Updated by Daniel Felix almost 4 years ago

Yes this would be good too. But the new issue view is quite confusing if there is a project with 100+ Users. :-)

#6 Updated by Jean-Philippe Lang almost 4 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

I'm closing it as a dup of #8562. Now, the default checkbox are not displayed if there are more than 20 members.

#7 Updated by Jean-Philippe Lang almost 4 years ago

  • Duplicates Feature #8562: Watchers list too big in new issue form added

Also available in: Atom PDF