User story #1509
Sprint board filter by Assignee, add a first line for "Me"
Status:
New
Priority:
Normal
Category:
Sprint board
Target version:
-
Blocked:
No
Alone:
No
Milestones:
Sprint:
Description
Here is some code that can be added :
$("table.sprint-board a.user").each(function(row_index, user_link) { users[$.trim(user_link.text)] = row_index; }); // Three lines added var current_user_name = '<%= User.current.name %>'; var label_me = '<< <%= l(:label_me) %> >>'; if (users[current_user_name]) $assignees.append("<option value='" + current_user_name + "'>" + label_me + "</option>"); $.each(users, function(user, row_index) { $assignees.append("<option value='" + user + "'>" + user + "</option>"); });
With this sample code, the logged user is not removed from the following lines.
Updated by Redmine Smile almost 7 years ago
With this sample code, the logged user is not removed from the following lines.
I mean that the logged user will appear twice in the list (as Me and next with it's name)
In the case he his member of the project of course.
Updated by Redmine Smile almost 7 years ago
Merge Request here : https://git.ociotec.com/redmine/scrum/merge_requests/3