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.

Also available in: Atom PDF