New and Improved 3.13 Beta. Highlights: Shareable filters and dashboards and lots of other goodies. Any feedback can be raised as JIRA issues in the JIRA project.
Issue Details (XML | Word | Printable)

Key: JRA-11888
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Sam Chang [Atlassian]
Reporter: =Neal Applebaum
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
JIRA

Group dropdown not in alphabetical order when commenting on issue

Created: 05/Jan/07 02:53 PM   Updated: 25/Jul/07 07:46 AM
Component/s: Web interface
Affects Version/s: 3.6.5
Fix Version/s: 3.7.2

Time Tracking:
Not Specified

Participants: =Neal Applebaum, Dushan Hanuska [Atlassian], Nick Menere [Atlassian], Sam Chang [Atlassian] and Scott Farquhar [Atlassian]
Since last comment: 1 year, 5 weeks, 1 day ago
Resolution Date: 07/Jan/07 09:49 PM
Labels:


 Description  « Hide
When creating a comment, the group dropdown is not shown in alphabetical order. It looks to be using some ID field instead.

This is causing a big problem for us, the details of which you probably don't care about. if you can think of any workaround or database change to fix it, let me know.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dushan Hanuska [Atlassian] added a comment - 07/Jan/07 08:30 PM
Yes, you are right Neal. The groups come in natural order (whatever that means). Thank you for pointing that out. I agree with you that alphabetical order would make more sense and would be more useful.

There is an easy fix for it. Just replace the following line in CommentSystemField (line 484)

groups = authenticationContext.getUser().getGroups();

with

List userGroups = new ArrayList(authenticationContext.getUser().getGroups());
Collections.sort(userGroups);
groups = userGroups;

I will schedule a fix for this bug to the earliest possible release as it is very easy to fix.

Kind regards,
Dushan


Sam Chang [Atlassian] added a comment - 07/Jan/07 09:49 PM
Fixed for 3.7.2 according to the above solution.

=Neal Applebaum added a comment - 08/Jan/07 08:21 AM
Just make sure that if jira-users isn't first you don't a bunch of unhappy users!

=Neal Applebaum added a comment - 09/Jan/07 08:16 AM
Sam, and guys:

I have re-considered this issue and I think it may be unwise to go forward with this improvement/fix unless you provide a way (either in U.I. or properties setting) to revert to previous behaviour.

The reason is that because one cannot rename groups, one may find that the re-ordering is not as it was and there would be no way to fix it.

I fear there may be an overwhelming negative reaction to this change. In fact, I myself would not like this change either! Because I created "Staff" as my first group, it's actually quite helpful that it appears first in the dropdown (after jira-users).

So, again, although you've gone ahead and changed the behaviour for 3.7.2, I fear this "fix" may not be widely accepted unless there is a way to revert to the old behaviour or some way of configuring the sort.


=Neal Applebaum added a comment - 26/Feb/07 08:14 AM
I sincerely regret making a note of this. In order for me to upgrade to 3.7 or higher, I will need a way of restoring the previous behaviour. I have a group called "Staff" which is one of the forst groups I created so it appears at the top of the dropdown choices. My users will be unhappy if this moves, and I can't rename the group. Please provide instructions for changing the bhaviour back to the old way. Shall I create a support request for that?

Nick Menere [Atlassian] added a comment - 26/Feb/07 06:09 PM
Neal, yeah best create a support request for this.

Scott Farquhar [Atlassian] added a comment - 24/Jul/07 09:39 PM
Neal,

Can't you just 'pad' the staff group with spaces, which will put it at the top of the group list?


Scott Farquhar [Atlassian] added a comment - 24/Jul/07 09:40 PM
Further to my above comment - is there a problem with the new 'roles' functionality in JIRA? That is meant to supercede the usage of groups in most cases.

=Neal Applebaum added a comment - 25/Jul/07 06:49 AM - edited
Hi Scott,

I'll see if that may help (my own trick, eh?) . I do have some custom code that displays certain operations based on Group Name, so I would have to change all that as well.

Roles are not pertinent, I don't think, as the behaviour in the Comment Viewable dropdown is my issue. Anyway, I haven't tried 3.7 + in production yet, so I don't know what workarounds I can find.