Feature #15201

Filter "Assignee" should contain locked users

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

Status:NewStart date:
Priority:LowDue date:
Assignee:-% Done:

0%

Category:Issues filter
Target version:Candidate for next major release
Resolution:

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


Related issues

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

History

#1 Updated by Gurvan Le Dromaguet almost 4 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 4 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 4 years ago

  • Tracker changed from Defect to Feature

#4 Updated by Toshi MARUYAMA almost 4 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 3 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 3 years ago

+1

This would really come in handy.

#7 Updated by Toshi MARUYAMA about 3 years ago

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

#8 Updated by Ismael Barros² over 2 years ago

+1

#9 Updated by Christophe Portier over 1 year ago

+1

#10 Updated by Henning Kröger over 1 year 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 1 year ago

  • Category changed from Issues to Issues filter

#12 Updated by Stephane Lapie 12 months ago

+1

#13 Updated by Sonia Zh 11 months 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 5 months 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 5 months ago

Related to #24568.

#16 Updated by Marius BALTEANU 4 months 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 4 months 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 4 months ago

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

#19 Updated by Marius BALTEANU 3 months ago

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

#20 Updated by Mischa The Evil 3 months 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 2 months ago

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

Also available in: Atom PDF