https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-02-10T21:33:58ZRedmineRedmine - Defect #4792: Version sharing - not available in "All Issues Report"https://www.redmine.org/issues/4792?journal_id=142142010-02-10T21:33:58ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>0.9.3</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fixed in <a class="changeset" title="Adds filter for system shared versions on the cross project issue list (#4792)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3409">r3409</a>.</p> Redmine - Defect #4792: Version sharing - not available in "All Issues Report"https://www.redmine.org/issues/4792?journal_id=142192010-02-10T22:39:51ZAnonymous
<ul><li><strong>File</strong> <a href="/attachments/3171">system_shared_versions_name.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3171/system_shared_versions_name.patch">system_shared_versions_name.patch</a> added</li></ul><p>The <a class="changeset" title="Adds filter for system shared versions on the cross project issue list (#4792)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3409">r3409</a> is fine. However it creates version names, that contain the name of project you were creating the version in. This is fine in normal shared versions, however "system" versions are not tiet to particular project. So the project you were in, should NOT be displayed. And there is no way to create system version that is not tied to project.</p>
<p>The solution is in my opinion simple. system versions should not display project at all, just display "Global - <version_name>". I suggested this fix in <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Bugs in Version sharing (Closed)" href="https://www.redmine.org/issues/4728">#4728</a> as well.</p>
<p>Just remember - system versions are meant for whole redmine installation, so should not bear the project name, which is misleading.</p>
<p>Patch for <code>format_version_name(version)</code> attached.</p>
<p>For <a class="changeset" title="Adds filter for system shared versions on the cross project issue list (#4792)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3409">r3409</a> the patch will be changing line 215 in <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3409/entry/trunk/app/models/query.rb#L215">source:trunk/app/models/query.rb@3409#L215</a> like this:</p>
<pre>
- @available_filters["fixed_version_id"] = { :type => :list_optional, :order => 7, :values => system_shared_versions.sort.collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s] } }
+ @available_filters["fixed_version_id"] = { :type => :list_optional, :order => 7, :values => system_shared_versions.sort.collect{|s| ["Global - #{s.name}", s.id.to_s] } }
</pre> Redmine - Defect #4792: Version sharing - not available in "All Issues Report"https://www.redmine.org/issues/4792?journal_id=145522010-02-20T10:32:10ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><blockquote>
<p>This is fine in normal shared versions, however "system" versions are not tiet to particular project.</p>
</blockquote>
<p>System shared versions <strong>are</strong> tied to a project and you can share system versions from different projects.<br />So having the project name makes sense.</p>
<p>For your need, you can name your project with your system versions "Global" as a workaround.</p>