Project

General

Profile

User story #1509

Sprint board filter by Assignee, add a first line for "Me"

Added by Redmine Smile about 7 years ago. Updated almost 7 years ago.

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.

#1

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.

#3

Updated by Redmine Smile almost 7 years ago

Thanks a lot to have merged it.

Also available in: Atom PDF