プロジェクト

全般

プロフィール

Vote #69541

完了

Show Roadmap tab when subprojects have defined versions

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Roadmap_22
対象バージョン:
開始日:
2011/03/22
期日:
進捗率:

0%

予定工数:
category_id:
22
version_id:
152
issue_org_id:
7956
author_id:
30704
assigned_to_id:
332
comments:
14
status_id:
5
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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...


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
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

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
"Roadmap" tab is shown in the parent project if one or more shared versions visible to the parent is defined in subprojects (#2666).
--------------------------------------------------------------------------------
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.

<pre><code class="diff">
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) },
</code></pre>
--------------------------------------------------------------------------------
Attaching a patch with test code.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> I think this request is a natural one.

I agree. LGTM.
--------------------------------------------------------------------------------
Mischa The Evil wrote:
> I agree. LGTM.

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

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed the patch.
--------------------------------------------------------------------------------
+1

Thanks for patch...

Works with:
_Redmine 4.1.0.stable.19444_
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,2666,Roadmap for main project should see Roadmaps for sub projects
relates,New,1342,Global versions roadmap
relates,Closed,34983,Roadmap tab is missing if there are only inherited from parent project versions
duplicates,Closed,9234,Versions of subprojects are / Roadmap) is - only visible if at least one version is defined

Admin Redmine さんが3年以上前に更新

  • カテゴリRoadmap_22 にセット
  • 対象バージョン4.2.0_152 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0