Project

General

Profile

Actions

Defect #5385

closed

Status filter should show statuses related to project trackers only

Added by Bo Hansen almost 14 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
Start date:
2010-04-26
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Using 0.9.3 I define a project to use only an issue tracker without the usual "new, assigned, ..." issue statuses. However when I create a filter on the issue status field I'm still presented with a list of both my new statuses but also the usual ones.

Thanks for a great project!

Best regards,
Bo

Ruby version              1.8.7 (i686-linux)
RubyGems version          1.3.1
Rack version              1.0
Rails version             2.3.5
Active Record version     2.3.5
Active Resource version   2.3.5
Action Mailer version     2.3.5
Active Support version    2.3.5
Edge Rails revision       unknown
Application root          /home/redmine/redmine-0.9.3
Environment               development
Database adapter          mysql
Database schema version   0

About your Redmine plugins
Stuff To Do Plugin        0.4.0
Redmine Question plugin   0.3.0
Timesheet Plugin          0.6.0

Files

redmine_issue-status.jpg (13.6 KB) redmine_issue-status.jpg Issue status filter showing possible statuses for all trackers Bo Hansen, 2010-04-28 08:57
redmine_workflow.jpg (43 KB) redmine_workflow.jpg Workflow administration - showing the statuses in use by the tracker Order Bo Hansen, 2010-04-28 08:57
issue_statuses_filter_fix.diff (1.34 KB) issue_statuses_filter_fix.diff Applies to 0.9.3 Bo Hansen, 2010-04-30 11:31
4385_issue_statuses_filter_fix_RM_3.1.1.diff (718 Bytes) 4385_issue_statuses_filter_fix_RM_3.1.1.diff Olivier Houdas, 2015-10-09 12:08
5385_restrict_issues_statuses_in_query.patch (5.29 KB) 5385_restrict_issues_statuses_in_query.patch Marius BĂLTEANU, 2017-04-18 01:48

Related issues

Related to Redmine - Patch #27772: Issues reports should show only statuses used by the projectClosedGo MAEDA

Actions
Has duplicate Redmine - Feature #10643: Only allowes statusClosed

Actions
Has duplicate Redmine - Feature #7703: In issue filtering view, only allow issue status selections which are available in the current projectClosed2011-02-23

Actions
Has duplicate Redmine - Defect #10647: Other projects statuses show up at pull down list on issue filteringClosed

Actions
Has duplicate Redmine - Feature #14217: issues view: only list relevant status in filter drop downClosed

Actions
Actions #1

Updated by Thomas Pihl almost 14 years ago

Could you attach screenshots of Administration - Statuses and the Filter page with statuses dropdown open?

Actions #2

Updated by Thomas Pihl almost 14 years ago

Reread our defect report. I don't think this is a defect. If those statuses are defined in the system they should be possible to filter on. This is because you may save an filter that finds issues in all projects (or all subprojects).

I think this is as it is intended.

Actions #3

Updated by Bo Hansen almost 14 years ago

Still if you are creating a filter while standing in a subproject I think it would be cleaner if only the issue statuses of the available trackers for this particular project. Especially if you have users only having access to this particular project. Then it would be nice if they are not bothered with a bunch of issue statuses they never use.
I understand about the global filters. In that case it should definitely show all issue statuses.

Actions #4

Updated by Thomas Pihl almost 14 years ago

May i suggest a change to Feature Request on this one, since i agree that it would be nice.

Actions #5

Updated by Bo Hansen almost 14 years ago

Turned out that Query.rb already selects trackers available per project and subprojects. The attached patch utilizes this information and thus the global filtering issue is also taken care of.

Actions #6

Updated by Bob Bottle over 13 years ago

Are there any plans to include this patch in a future release?

Actions #7

Updated by Olivier Houdas over 8 years ago

It would be nice to include this fix in Redmine 3.1.2 or 3.2.

Attached is a patch (slightly different, but works) for Redmine 3.x, as the code of the previously attached patch became a bit old, and that part was moved from query.rb to issue_query.rb in more recent versions of Redmine.

Actions #8

Updated by Go MAEDA over 8 years ago

  • Target version set to Candidate for next major release

Thank Olivier Houdas for updating the patch.

4385_issue_statuses_filter_fix_RM_3.1.1.diff looks good to me on Redmine 3.1.1.devel.14669. Statuses used in the current project and subprojects are shown.

Actions #9

Updated by Go MAEDA over 8 years ago

  • Related to Feature #7703: In issue filtering view, only allow issue status selections which are available in the current project added
Actions #10

Updated by Go MAEDA over 8 years ago

  • Related to deleted (Feature #7703: In issue filtering view, only allow issue status selections which are available in the current project)
Actions #11

Updated by Go MAEDA over 8 years ago

  • Has duplicate Feature #7703: In issue filtering view, only allow issue status selections which are available in the current project added
Actions #12

Updated by Sebastian Paluch over 8 years ago

+10

any chance to plan this sooner than next major?

Actions #13

Updated by Toshi MARUYAMA over 8 years ago

  • Has duplicate Defect #10647: Other projects statuses show up at pull down list on issue filtering added
Actions #14

Updated by Marius BĂLTEANU about 7 years ago

Here is an updated patch that restricts the statuses in the issue filter only to the statuses used by the current project and its subprojects. For the global issues page, all statuses are listed in the filter.

I think we should change the current behaviour (which lists all the statuses regardless the project) for the following reasons:
  1. consistency: with tracker and custom fields behaviour (#25501#note-4)
  2. privacy: for example, in our instance, we have some internal projects with multiple statuses (not related to our development workflow) that we don't want to be visible for our customers (they don't have access to the respective projects) each time when they access their projects.

As a technical note, I tried to use the patch made by Olivier Houdas, but it doesn't work too well because some issues statuses from WorkflowTransition are not returned by the query. I can add some examples, if it is necessary.

Actions #15

Updated by Go MAEDA about 7 years ago

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

Marius BALTEANU, thank you for improving the patch. It looks good to me. Passed all tests.

Marius BALTEANU wrote:

I think we should change the current behaviour (which lists all the statuses regardless the project) for the following reasons:
  1. consistency: with tracker and custom fields behaviour (#25501#note-4)
  2. privacy: for example, in our instance, we have some internal projects with multiple statuses (not related to our development workflow) that we don't want to be visible for our customers (they don't have access to the respective projects).

Indeed.

Setting target version to 3.4.0.

Actions #16

Updated by Jean-Philippe Lang almost 7 years ago

  • Subject changed from All issue statuses shown when creating status filter to Status filter should show statuses related to project trackers only
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Patch applied, thanks. I've also updated the time entry query in order to show the same trackers and statuses.

Actions #17

Updated by Marius BĂLTEANU over 6 years ago

  • Has duplicate Feature #14217: issues view: only list relevant status in filter drop down added
Actions #18

Updated by Marius BĂLTEANU over 6 years ago

  • Related to Patch #27772: Issues reports should show only statuses used by the project added
Actions

Also available in: Atom PDF