Project

General

Profile

Actions

Feature #7956

closed

Show Roadmap tab when subprojects have defined versions

Added by Maciej Liżewski over 13 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Roadmap
Target version:
Start date:
2011-03-22
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

If root project does not have defined versions, but subprojects have them, there is no "roadmap" menu item in root-level project.
I guess this is common situation when you use project nesting to simulate development areas, for example: root project stands for "all projects for Client X" so you could use reporting aggregated per-client...

You can always enter the root-level roadmap simply by specyfying "project-name/roadmap" in URL, but this is not so pretty...


Files

7956.patch (1.85 KB) 7956.patch Go MAEDA, 2020-05-27 15:43

Related issues

Related to Redmine - Feature #2666: Roadmap for main project should see Roadmaps for sub projectsClosed2009-02-04

Actions
Related to Redmine - Feature #1342: Global versions roadmapNew2008-06-01

Actions
Related to Redmine - Defect #34983: Roadmap tab is missing if there are only inherited from parent project versionsClosedGo MAEDA

Actions
Has duplicate Redmine - Defect #9234: Versions of subprojects are / Roadmap) is - only visible if at least one version is definedClosed2011-09-12

Actions
Actions #1

Updated by Etienne Massip over 13 years ago

  • Category set to Projects
Actions #2

Updated by Etienne Massip about 13 years ago

  • Category changed from Projects to Roadmap
Actions #3

Updated by Terence Mill about 13 years ago

We are using hierarchical project organization heavily, but some of our parent "project" just implement departments under which real projects with planned version are configured. In the departments parent projects we activated issue module and hoped to see the Versions of all sub projects in its roadmap.
But this only works if at least one version is configured in deparment (parent) project. If not the Roadmap tab isn't even displayed!
This behaviour is very wired and doesn't make sense for. Either in every case version are showed in the roadmap (for all childs too) or not, but not only if parent also has version defined.

Thats why we think it is more a bug than a feature, as it behaves now!

+1

Actions #4

Updated by Go MAEDA about 5 years ago

  • Related to Feature #2666: Roadmap for main project should see Roadmaps for sub projects added
Actions #5

Updated by Go MAEDA about 5 years ago

"Roadmap" tab is shown in the parent project if one or more shared versions visible to the parent is defined in subprojects (#2666).

Actions #6

Updated by Go MAEDA over 4 years ago

I think this request is a natural one.

The roadmap page shows versions in subprojects if "Display subprojects issues on main projects by default" (Administration > Settings > Issue tracking) is enabled.

So, the tab in the project menu should be displayed when subprojects have any version even if the current project has no version.

The following patch changes the behavior of the menu.

diff --git a/lib/redmine.rb b/lib/redmine.rb
index beaebaec8..668a65da2 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -303,7 +303,7 @@ Redmine::MenuManager.map :project_menu do |menu|
   menu.push :overview, { :controller => 'projects', :action => 'show' }
   menu.push :activity, { :controller => 'activities', :action => 'index' }
   menu.push :roadmap, { :controller => 'versions', :action => 'index' }, :param => :project_id,
-            :if => Proc.new { |p| p.shared_versions.any? }
+            :if => Proc.new { |p| Setting.display_subprojects_issues? ? p.rolled_up_versions.any? : p.shared_versions.any? }
   menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
   menu.push :new_issue, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new,
             :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) },
Actions #7

Updated by Go MAEDA over 4 years ago

Attaching a patch with test code.

Actions #8

Updated by Mischa The Evil over 4 years ago

Go MAEDA wrote:

I think this request is a natural one.

I agree. LGTM.

Actions #9

Updated by Go MAEDA over 4 years ago

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

Mischa The Evil wrote:

I agree. LGTM.

Thank you for reviewing the patch. Setting the target version to 4.2.0.

Actions #10

Updated by Go MAEDA over 4 years ago

Actions #11

Updated by Go MAEDA over 4 years ago

  • Subject changed from Show menu item 'Roadmap' when subprojects have defined versions to Show Roadmap tab when subprojects have defined versions
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed
Actions #12

Updated by Go MAEDA over 4 years ago

Committed the patch.

Actions #13

Updated by Aleksandar Pavic over 4 years ago

+1

Thanks for patch...

Works with:
Redmine 4.1.0.stable.19444

Actions #14

Updated by Marius BĂLTEANU over 3 years ago

  • Related to Defect #34983: Roadmap tab is missing if there are only inherited from parent project versions added
Actions

Also available in: Atom PDF