Feature #21662
openSearch in issue assigned dropdown list
0%
Description
My team used redmine over one year,now there are about 100 people in one project。
Everytime I create a issue ,I must assgin to somebody, and the dropdown list is tooooooo long, really hard to find the people I want to assgin.
sorry about my english,can somebody tell me to do fix it?
Files
Related issues
Updated by Toshi MARUYAMA almost 9 years ago
- Category set to UI
- Priority changed from High to Normal
Updated by Go MAEDA almost 8 years ago
- Related to Feature #22275: Could search or input manually assignee and target version added
Updated by Go MAEDA almost 8 years ago
It would be great if "Assignee" drop-down has incremental search feature like "Jump to project" drop-down improved by #23310.
Updated by Toshi MARUYAMA over 7 years ago
- Has duplicate Feature #26656: Search Assignee added
Updated by Tomomi Yuzuriha about 7 years ago
- File autocomplete-issue-assigned-to_01@2x.png autocomplete-issue-assigned-to_01@2x.png added
- File autocomplete-issue-assigned-to_02@2x.png autocomplete-issue-assigned-to_02@2x.png added
- File autocomplete-issue-assigned-totrunk-r17004.patch autocomplete-issue-assigned-totrunk-r17004.patch added
+1 for kunkka zhang's idea!
I made the patch to implement this feature (compatible with latest trunk 17004).
This patch alows user to select assigner using incremental search.
Please see the screenshots below for the details.
Updated by Go MAEDA about 7 years ago
Tomomi Yuzuriha, thank you for contributing to Redmine.
I have just tried your patch and I noticed a problem. The problem is that "<< me >>" in the assignee list is removed by your patch. I think this is a big problem because "<< me >>" is very useful and probably many people use it.
I hope that "<< Me >>" will be available in your patch.
Updated by Marius BĂLTEANU about 7 years ago
This improvement looks very nice and it'll improve Redmine UI/UX. I'm wondering if it is possible to make this implementation like a widget or JS function that can be reused easily in other parts from Redmine (eg: selects, add watchers, plugins).
Updated by Tomomi Yuzuriha about 7 years ago
- File gravatar_icon_none@2x.png gravatar_icon_none@2x.png added
- File gravatar_icon_present@2x.png gravatar_icon_present@2x.png added
- File 0001-Add-autcomplete-issue-assigned-to.patch 0001-Add-autcomplete-issue-assigned-to.patch added
- File 0002-Add-display-gravatar-on-assigners-list.patch 0002-Add-display-gravatar-on-assigners-list.patch added
Go Maeda, Thank you for your pointting out of my patch's problem.
Refering your comment, I changed the patch as follows.- Add "<< me >>" in assignee list
- Add separator between Users and Groups
Please see the screenshot and patch below for the details.
Patch: 0001-Add-autcomplete-issue-assigned-to.patch
Additionaly, Possible to add gravatar to the assignee list with the following patch.
Patch: 0002-Add-display-gravatar-on-assigners-list.patch
Updated by Toshi MARUYAMA about 7 years ago
- Subject changed from can enable to search people in dropdown list while assgin? to Search in issue assigned dropdown list
Updated by Go MAEDA about 7 years ago
- Target version set to 4.1.0
LGTM. Setting the target version to 4.1.0.
Updated by Tomomi Yuzuriha about 7 years ago
- File 0001-Add-autcomplete-issue-assigned-to.patch 0001-Add-autcomplete-issue-assigned-to.patch added
- File 0002-Add-display-gravatar-on-assigners-list.patch 0002-Add-display-gravatar-on-assigners-list.patch added
- File gravatar-icon-none@2x.png gravatar-icon-none@2x.png added
- File gravatar-icon-present@2x.png gravatar-icon-present@2x.png added
I changed the patch because the layout was corrupted as shown below on the specific browser(e.g. chrome, IE).
Layout with chrome:Updated by Mischa The Evil about 7 years ago
- I'll start by saying that I agree with what Marius wrote in note#7: "[...] if it is possible to make this implementation like a widget or JS function that can be reused easily in other parts from Redmine (eg: selects, add watchers, plugins)". I actually think it might even be a requirement.
- This functionality is only implemented in the
issues/_attributes.html.erb
partial, while there are:- one: more current uses of
principals_options_for_select
that (might) need the same functionality:ProjectsHelper#project_default_assigned_to_options
issues/bulk_edit.html.erb
viewissue_categories/_form.html.erb
view
- two: other similar parts of the current Redmine core code and indeed even plugins that could benefit from this change (again referring to Marius' quote here) [two other practical use-cases I though of were the user custom fields and even version selects (with the second one I'm thinking especially about the currently sometimes very long lists)].
This becomes a problem (duplication) when the same functionality is being implemented in those other places too. Because of that it would be better if most of the implementation (logic) is outside of the views/partials. I haven't looked up what the possibilities here exactly are but what about anApplicationHelper#principals_options_for_autocomplete
or something? And what about some extraction/abstraction into (at least) (a) reusable JS function(s)?
- one: more current uses of
- And btw: what about the
raw
usage? Is is safe? I'd have to look into it more closely. - Some typo-look-a-like, potentially ambiguous variable names:
assignner_list
&assigners
. What aboutassignee(s)_list
&assignees
? - What about some top-padding for the groups separator? Maybe a little less padding around the items themselfs? Maybe style the separator like the other opt-group implementations in Redmine3 by omitting the dashes and making the label bold. I should keep the icon in this case.
- I see several CSS styles and
li
element styles. Does this affect themes/themeability? Transfer toapplication.css
? Responsive styling ok? I haven't tested it. - This is I think the biggest problem currently: this patch misses an equivalent of
:required => @issue.required_attribute?('assigned_to_id')
introduced in r9977 for #703 and #3521.
All in all, I don't think that these patches are ready for integration yet.
1 disclaimer one: I don't consider myself a JavaScript guru.
2 disclaimer two: I haven't actually run this code myself (yet); I only did a (superficial) visual review of the patches from note#12.
Updated by Toshi MARUYAMA almost 7 years ago
- Target version deleted (
4.1.0)
Mischa The Evil wrote:
All in all, I don't think that these patches are ready for integration yet.
What is current status?
Updated by Mizuki ISHIKAWA over 6 years ago
- File diff.patch diff.patch added
- File using_select2.png using_select2.png added
I think that it is good to use select2 to realize this feature.
It is a plugin that provides an easy-to-use selection box.
This picture is actually a screenshot of the screen using select2.
select2 is a popular plugin with many stars (22109) in GitHub.
https://github.com/select2/select2
By applying the attached patch you can use select 2 in Redmine for testing.
Updated by Marius BĂLTEANU over 6 years ago
Select2 could be a good solution, but Jean-Philippe Lang prefers to not use this library because it has a huge footprint (you can see here: #23310-11).
Updated by Go MAEDA over 6 years ago
- Related to Feature #1308: use ajax suggestion pattern to fill out single potentially big fields, like "assigned to", "author" added