https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-07-18T01:03:08ZRedmineRedmine - Patch #5894: Allow bulk status changehttps://www.redmine.org/issues/5894?journal_id=184092010-07-18T01:03:08ZMischa The Evil
<ul><li><strong>Tracker</strong> changed from <i>Feature</i> to <i>Patch</i></li><li><strong>Category</strong> set to <i>Issues</i></li></ul>Fixed and corrected:
<ul>
<li>Tracker</li>
<li>Description</li>
<li>Category</li>
</ul>
Changed issue-relations:
<ul>
<li>added; "related to" <a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Defect: Changing status from contextual menu opens the ticket instead (Closed)" href="https://www.redmine.org/issues/5892">#5892</a></li>
</ul> Redmine - Patch #5894: Allow bulk status changehttps://www.redmine.org/issues/5894?journal_id=186752010-07-25T10:33:43ZFelix Schäfer
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>Peter, from what a quick can gather I think your problem was related to not being able to use the context menu to change the status, correct? This has been corrected for <a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Defect: Changing status from contextual menu opens the ticket instead (Closed)" href="https://www.redmine.org/issues/5892">#5892</a> and is in current trunk and 1.0-stable.</p> Redmine - Patch #5894: Allow bulk status changehttps://www.redmine.org/issues/5894?journal_id=187022010-07-26T08:34:24ZPeter Höpfl
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>Hello Felix,</p>
<p>no, Ticket <a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Defect: Changing status from contextual menu opens the ticket instead (Closed)" href="https://www.redmine.org/issues/5892">#5892</a> is only one half of my suggested patch:<br />Ticket <a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Defect: Changing status from contextual menu opens the ticket instead (Closed)" href="https://www.redmine.org/issues/5892">#5892</a> enables the user to change the status as a bulk action.</p>
<p>But my patch in the app/controllers/issues_controller.rb at last makes it possible to change the status of MORE THAN ONE ticket at once.</p>
<p>The logic in the issues_controller is like this:<br />First there is a check if only one issue is selected. Only if that is the case the context menu for status changes is enabled.<br />But that also means that if you select more than one ticket the option to change the status of several tickets at once is gone!<br />My patch in the controller changes the behavior:<br />It checks if all selected issues belong to the same project – in that case the permission check is the same as for one ticket – and if yes and the user has correct permissions it enables the status change feature by setting the variable @issue to the first select issue.</p>
<p>@issue is later the precondition to show the status change menu entry in the context_menu and the change in <a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Defect: Changing status from contextual menu opens the ticket instead (Closed)" href="https://www.redmine.org/issues/5892">#5892</a> makes the bulk action itself correctly executed.</p>
<p>I see no reason why one should not be allowed to change the status of <n> tickets in one project at once...</p> Redmine - Patch #5894: Allow bulk status changehttps://www.redmine.org/issues/5894?journal_id=187032010-07-26T08:53:40ZFelix Schäfer
<ul><li><strong>Subject</strong> changed from <i>Allow bulk actions for issues in one project, especially status changes</i> to <i>Allow bulk status change</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li></ul><p>Peter: could you post your proposed changes as a diff (<code>diff -u original_file modified_file</code> for example, or <code>svn diff</code> or <code>svn diff some_file</code> if you have checked out redmine from svn), they're much more readable, thanks. Also, I just had a closer look at the patch and it will show the allowed statuses for the first issue in the list, but suppose you select issues from 2 different trackers, say a Bug and a Patch, and the roles you have allow you to close Bugs but not Patches, then the menu will show you the Closed status (if the first issue is a Bug) although you can't close patches.</p>
<p>JPLang: As it was your code limiting the status changes, I'll let you tackle this one.</p>
<p>Regarding the limitation to only one project: I don't think it's necessary as long as you collect the allowed statuses for each issue and make the intersection of those, that way you'd end up with statuses the user can reach for every issue.</p> Redmine - Patch #5894: Allow bulk status changehttps://www.redmine.org/issues/5894?journal_id=187042010-07-26T11:16:42ZPeter Höpfl
<ul></ul><p>Alright, my patch is definitly not usable as a final solution:<br />I forgot the fact that also within one project issues for different trackers with different rights can exist.<br />I simply took the first issue, checked the user rights and then allowed the bulk change (that works in our installation, because we have identical rights for all trackers in one project).</p>
<p>JPLang: Maybe you know a way to collect the allowed statuses for all selected issues and provide a patch that solves this better than my approach...</p> Redmine - Patch #5894: Allow bulk status changehttps://www.redmine.org/issues/5894?journal_id=240312011-01-13T20:52:33ZCyber Sprocket
<ul></ul><p>Users that are logged in as administrator should be allowed to ALWAYS bulk upload status codes.</p>
<p>As an admin I can see tasks but then I cannot edit them unless I go into the project and add myself as a member. That adds extra work when trying to clean up tasks or organize projects.</p> Redmine - Patch #5894: Allow bulk status changehttps://www.redmine.org/issues/5894?journal_id=482992013-04-10T15:53:36ZFilou Centrinov
<ul></ul><p>It's fixed, isn't it?<br /><a class="user active" href="https://www.redmine.org/users/1211">Peter Demais</a> Höpfl: Please upgrade your Redmine to use this function.</p> Redmine - Patch #5894: Allow bulk status changehttps://www.redmine.org/issues/5894?journal_id=483542013-04-11T07:48:58ZPeter Höpfl
<ul></ul><p>Yes, it is fixed. We already use the updated version.<br />So please close this ticket.</p> Redmine - Patch #5894: Allow bulk status changehttps://www.redmine.org/issues/5894?journal_id=483592013-04-11T08:08:07ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>Peter Höpfl wrote:</p>
<blockquote>
<p>Yes, it is fixed. We already use the updated version.<br />So please close this ticket.</p>
</blockquote>
<p>Thank you for your feedback.</p>