Feature #15201

Filter "Assignee" should contain locked users

Added by Jan Niggemann (redmine.org team member) almost 5 years ago. Updated 4 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Issues filter
Target version:4.0.0
Resolution:Fixed

Description

Scenario
User leaves company -> profile gets locked
User still has issues assigned, but it's not possible to set a filter "Assignee=UserWhoLeft"

15201_include_locked_members_in_assignee_users.patch Magnifier (2.13 KB) Marius BALTEANU, 2017-05-14 08:48

group_by_status.png (182 KB) Marius BALTEANU, 2017-09-25 23:44

author_by_status.png (171 KB) Marius BALTEANU, 2017-09-25 23:51

15201_include_locked_members_in_assignee_users_v2.patch Magnifier (5.87 KB) Marius BALTEANU, 2017-10-08 19:00


Related issues

Related to Redmine - Feature #11069: Ability to search tasks of Locked Users Closed
Related to Redmine - Feature #24568: Show locked users in 'Users' filter for 'Spent time' report Closed
Duplicated by Redmine - Defect #15602: Can not filter issues with criteria assigned_to equal to ... Closed

Associated revisions

Revision 17371
Added by Go MAEDA 4 months ago

Include locked members in filters (#15201).

Patch by Marius BALTEANU.

History

#1 Updated by Gurvan Le Dromaguet almost 5 years ago

I suppose the best would be an option in Redmine settings to allow or not the querying on locked users.

#2 Updated by Mischa The Evil almost 5 years ago

Jan Niggemann (redmine.org team member) wrote:

Scenario
User leaves company -> profile gets locked
User still has issues assigned, but it's not possible to set a filter "Assignee=UserWhoLeft"

Indeed, at least not using the UI. Using some URL mangling (see #4501, #8160 and #13443) you can still create a query using locked users as assignee.

If it is decided that locked users are getting included in possible filter values, I'd strongly prefer to distinct them clearly (using HTML optgroup or so).

#3 Updated by Jean-Philippe Lang almost 5 years ago

  • Tracker changed from Defect to Feature

#4 Updated by Toshi MARUYAMA almost 5 years ago

  • Duplicated by Defect #15602: Can not filter issues with criteria assigned_to equal to an unaffected user who previously worked on the project added

#5 Updated by Luis Serrano Aranda over 4 years ago

I think you should add this feature for more filters like autor, and all the filters with a user.

#6 Updated by Deoren Moor about 4 years ago

+1

This would really come in handy.

#7 Updated by Toshi MARUYAMA about 4 years ago

  • Related to Feature #11069: Ability to search tasks of Locked Users added

#8 Updated by Ismael Barros² over 3 years ago

+1

#9 Updated by Christophe Portier over 2 years ago

+1

#10 Updated by Henning Kröger over 2 years ago

+1
We are missing locked users in the filters for time entries too. I think this is related to this issue, do you agree?

#11 Updated by Toshi MARUYAMA over 2 years ago

  • Category changed from Issues to Issues filter

#12 Updated by Stephane Lapie almost 2 years ago

+1

#13 Updated by Sonia Zh almost 2 years ago

+1
and agree as well with Henning Kroger regarding time_entries. If someone left from the company half way of a version and we want to display the timelog report for all issues related to the version. The timelog from the locked-user won't appear in the timelog report. The total hours spent for the released version won't be correct.

#14 Updated by Jürgen Depicker over 1 year ago

+1
and same remark regarding spent time on an issue (timelog report) - time logs should still show hours spent by users who are no longer active, since the time was spent (and paid) after all :).

#15 Updated by Jürgen Depicker over 1 year ago

Related to #24568.

#16 Updated by Marius BALTEANU over 1 year ago

I've attached a small patch that adds the locked members to the assignee and author values. I think it's the expected behaviour from two reasons:
- there are a lot of cases when you want to find tickets created/assigned to a locked member, especially when a user left the company and you want to find his issues.
- the members page includes the locked members (#22034).

The patch fixes also #24568.

#17 Updated by Mischa The Evil over 1 year ago

  • Target version set to Candidate for next major release

I agree with Marius' rationale for the change. I think this would be good improvement.

#18 Updated by Toshi MARUYAMA over 1 year ago

  • Related to Feature #24568: Show locked users in 'Users' filter for 'Spent time' report added

#19 Updated by Marius BALTEANU about 1 year ago

Let's try fixing this behavior in 3.4.1 or version:3.5.0.

#20 Updated by Mischa The Evil about 1 year ago

Marius BALTEANU wrote:

Let's try fixing this behavior in 3.4.1 or version:3.5.0.

I would support integration of this change into 3.5.0 if we also add a distinction between the locked users and the active users using a HTML optgroup.
I know several situations where the amount of locked users if way bigger than the number of active users. In these situations, application of the current proposed patch would make the author and assigned_to filters pretty hard to work with. WDYT?

#21 Updated by Marius BALTEANU about 1 year ago

Totally agree, I'll update the patch in order to group the assignee by status.

#22 Updated by Marius BALTEANU about 1 year ago

Mischa, something like that it is good enough?

Also, I think that the Author filter should have the same behaviour:

#23 Updated by Marius BALTEANU 12 months ago

Updated the patch to group users by status for the following filters:
  • Issue assignee
  • Issue author
  • TimeEntry user

#24 Updated by Mischa The Evil 12 months ago

Marius BALTEANU wrote:

Mischa, something like that it is good enough?

Looking at the screenshots and after a quick scan of the patch content (with the tests) I'd say: LGTM!

#25 Updated by Toshi MARUYAMA 11 months ago

  • Target version changed from Candidate for next major release to 4.1.0

#26 Updated by Christian Slam 8 months ago

Is there a permission to set, that all users can see the locked users in filters? atm only redmine admins can see them.

#27 Updated by Marius BALTEANU 8 months ago

Christian Slam wrote:

Is there a permission to set, that all users can see the locked users in filters? atm only redmine admins can see them.

No, you can't see (yet) the locked users in filters regardless your user type or permissions. This feature is proposed for the next major Redmine version.

If you need the feature early, you can try apply the patch on your instance, but you need some technical skills to do that. If you need help, please use forums.

#28 Updated by Go MAEDA 4 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Priority changed from Low to Normal
  • Target version changed from 4.1.0 to 4.0.0
  • Resolution set to Fixed

Committed. Thank you for improving Redmine.

Also available in: Atom PDF