Feature #20081

Filter issues and time entries by project status

Added by Zer Guz over 3 years ago. Updated 19 days ago.

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

0%

Category:Projects
Target version:4.0.0
Resolution:Fixed

Description

When filtering (issues, spent time, etc) by project, the filter shows a list of all non-archived projects. This list becomes very long (in our case) as the closed projects are accumulating. We don't want to archive these closed projects, as we need occasionally to find data related to them.

It is good to choose whether the filter list includes only active project (default) or all (excluding archived, as it is now).

For example, currently the filter consists of two lists:
  • is, is not
  • project names
It could be changed to:
  • is (active), is, is not
  • project names
Or add additional list:
  • active, all, closed
  • is, is not
  • project names

So that if "active" is selected, only active projects are shown in the combo list. "Active" should be used by default (rather than "all") - this way it should cover the most used cases without additional effort.

0002-Filter-time-entries-after-project-status.patch Magnifier (3.62 KB) Marius BALTEANU, 2018-10-22 00:03

0001-Filter-issues-after-project-status.patch Magnifier (5.55 KB) Marius BALTEANU, 2018-10-28 16:38


Related issues

Related to Redmine - Patch #29482: Query system for Projects page New
Related to Redmine - Feature #12066: Don't show issues for closed projects in all issues list New
Duplicated by Redmine - Feature #22107: Add "Project status" to issues list's filters Closed
Blocks Redmine - Feature #29449: Filter out issues from closed projects in My Page blocks Closed

Associated revisions

Revision 17607
Added by Go MAEDA 19 days ago

Filter issues after project status (#20081).

Patch by Marius BALTEANU.

Revision 17608
Added by Go MAEDA 19 days ago

Filter time entries after project status (#20081).

Patch by Marius BALTEANU.

Revision 17609
Added by Go MAEDA 19 days ago

Revert unwanted changes in r17607 (#20081).

History

#1 Updated by Go MAEDA over 1 year ago

  • Duplicated by Feature #22107: Add "Project status" to issues list's filters added

#2 Updated by Marius BALTEANU 26 days ago

Attached two patches that add the "Project's status" filter to issues and time entries. Beside the filter itself utility, if we add this feature, will allow us to implement #29449 and also, to discuss (I'll add another ticket) the possibility to hide the issues/time entries from closed projects by default (as the closed projects are hidden by default in Projects page).

#3 Updated by Marius BALTEANU 26 days ago

  • Related to Patch #29482: Query system for Projects page added

#4 Updated by Marius BALTEANU 26 days ago

  • Related to Feature #29449: Filter out issues from closed projects in My Page blocks added

#5 Updated by Marius BALTEANU 26 days ago

  • Related to deleted (Feature #29449: Filter out issues from closed projects in My Page blocks)

#6 Updated by Marius BALTEANU 26 days ago

  • Blocks Feature #29449: Filter out issues from closed projects in My Page blocks added

#7 Updated by Marius BALTEANU 26 days ago

  • Related to Feature #12066: Don't show issues for closed projects in all issues list added

#8 Updated by Go MAEDA 21 days ago

Marius, thank you for writing the patch.

It seems working fine but I came across the following error while running tests after applying
0001-Filter-issues-after-project-status.patch. Could you look into this?

Failure:
QueriesHelperTest#test_filters_options_for_select_should_group_associations_filters [/Users/maeda/redmines/redmine-trunk/test/helpers/queries_helper_test.rb:78]:
Expected exactly 2 elements matching "optgroup[label="Project"] > option", found 3..
Expected: 2
  Actual: 3

#9 Updated by Marius BALTEANU 20 days ago

  • File deleted (0001-Filter-issues-after-project-status.patch)

#10 Updated by Marius BALTEANU 20 days ago

Fixed in the attached patch.

Sorry for not catching this test fail from the beginning.

#11 Updated by Go MAEDA 19 days ago

  • Subject changed from Show only active projects in the filter to Filter issues and time entries by project status
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version set to 4.0.0
  • Resolution set to Fixed

Committed. Thank you for improving Redmine.

Also available in: Atom PDF