Defect #7023
closedCopy Function Doesn't Copy SubTasks
90%
Description
The copy function does not copy the subtasks related to the task being copied. However, when you move a parent task, all subtasks are moved with it.
Files
Related issues
Updated by John S almost 14 years ago
- % Done changed from 0 to 90
We have been able to make changes so that when you copy a task that has subtasks related to it, all the subtasks are copied as well.
We made the changes in the issues.rb model. If anyone needs the same, let me know.
Updated by Yrs ONE almost 14 years ago
This functionality will be very useful for us.
Updated by Anonymous almost 14 years ago
I have tested it and seems to work fine, but I dont like the idea of replacing the existing issue.rb.
Could it be possible to make this "copy function" as a plugin?
Updated by John S almost 14 years ago
I am sure it's possible. But I don't have the knowledge or time to make that change. The source code is there... feel free to do whatever you want with it. Wish I could help out more but I already put too much time in figuring out how to make this work and testing it out.
Good Luck!
Updated by Daniel Reiche almost 14 years ago
Any chance of this making it into 1.1.x or at least trunk?
Updated by Daniel Reiche almost 14 years ago
added patch for 1.1.0 branch to incorporate modified issue.rb from John S
Updated by Daniel Reiche almost 14 years ago
Beginners Mistake: accidentally merged the copy_children function as private method.
Revised in latest patch
Updated by Miro Karpis almost 14 years ago
please, help needed: I have changed the issue.rb + restarted apache and nothing happened (when I copy main tasks it does not copy subtasks). Am I missing something?
Updated by Miro Karpis almost 14 years ago
John S wrote:
Also restart the mongrel services?
didn't work. Not sure if the order is important (apache and mongrel).
Updated by John S almost 14 years ago
Miro Karpis wrote:
John S wrote:
Also restart the mongrel services?
didn't work. Not sure if the order is important (apache and mongrel).
All I did was change my issues.rb file and restart all the services. If that isn't working for you, I am not sure why. Hopefully someone else can provide an answer. (Mine still works as coded)
Updated by Liam Randall over 13 years ago
Testing this on a bitnami 1.2.0 stable host:
bitnami@linux:/opt/bitnami/apps/redmine$ sudo patch p0 < /home/bitnami/redmine/patches/copy_children/issue.rb.1.1.0.copy_children.patch saving rejects to file app/models/issue.rb.rej
patching file app/models/issue.rb
Hunk #1 succeeded at 205 (offset 28 lines).
Hunk #2 FAILED at 902.
1 out of 2 hunks FAILED -
Went ahead and tested anyway and seems to function properly.
Updated by Etienne Massip over 13 years ago
- Assignee deleted (
Jean-Philippe Lang)
Please don't assign issues.
Updated by Etienne Massip about 13 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
Closed as duplicate of #6965.