Defect #24693

Spent time on subtasks should also be reassigned when deleting an issue

Added by David Côté-Tremblay 10 months ago. Updated 7 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Issues
Target version:3.2.5
Resolution:Fixed Affected version:

Description

When you delete an issue, its spent hours will be reassigned to selected issue, but the time spent on descendants was just simply deleted. Now it is also reassigned to the targeted issue.

Patch tested and fully working for Redmine 3.3.1-devel

Pull request on GitHub : https://github.com/redmine/redmine/pull/92

issue-destroy-also-reassign-descendants-spent-hours.patch Magnifier (1.6 KB) David Côté-Tremblay, 2016-12-26 17:02

screenshot1-spent_time.png (53.1 KB) Go MAEDA, 2016-12-27 12:41

screenshot2-without-patch.png (30.3 KB) Go MAEDA, 2016-12-27 12:41

screenshot3-with-patch.png (31.8 KB) Go MAEDA, 2016-12-27 12:41


Related issues

Related to Redmine - Defect #24718: Prevent from reassigning spent time to an issue that is g... Closed

Associated revisions

Revision 16118
Added by Jean-Philippe Lang 10 months ago

Handle time entries on subtasks and prevent from reassigning an issue that is going to be deleted (#24718, #24693).

Revision 16120
Added by Jean-Philippe Lang 10 months ago

Update project_id column in case some time entries were on subtasks of different projects (#24693).

Revision 16122
Added by Jean-Philippe Lang 10 months ago

Unneeded assignment (#24693).

History

#1 Updated by Go MAEDA 10 months ago

  • Status changed from Resolved to New

#2 Updated by Go MAEDA 10 months ago

Confirmed the problem.
This patch works as expected. The remaining work is to add tests.

Total spent time is 11.00 hours:

Without the patch:

With the patch:

#3 Updated by David Côté-Tremblay 10 months ago

Thanks for your response !

I will the send patch that will include the tests during this week.

Have a great day !

#4 Updated by Go MAEDA 10 months ago

  • Related to Defect #24718: Prevent from reassigning spent time to an issue that is going to be deleted added

#5 Updated by Jean-Philippe Lang 10 months ago

  • Tracker changed from Patch to Defect
  • Subject changed from Issue destroy : Also reassign descendants spent hours to Spent time on subtasks should also be reassigned when deleting an issue
  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version changed from Candidate for next minor release to 3.2.5
  • Resolution set to Fixed

The fix is included in r16118, thanks.

#6 Updated by Jean-Philippe Lang 10 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF