Feature #6965

Option to Copy Subtasks when copying an issue

Added by John S almost 7 years ago. Updated about 5 years ago.

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

0%

Category:Issues
Target version:2.1.0
Resolution:Fixed

Description

I am wondering if there is a way to make the copy function, copy the subtasks related to it? This functionality is similar to the move function where if you move a main task, all the main tasks sub-tasks are moved as well.

Maybe there should be an option on the copy and move pages that lets you say wether or not you want to also copy/move the subtasks associated to the main task.

I couldn't find any open issues related to this so I am logging this as a feature request.

Thanks,
John

redmine_issue_subtasks.zip - issue subtask plugin (3.46 KB) Tiemo Vorschuetz, 2012-02-16 00:28


Related issues

Related to Redmine - Feature #6434: Copy task with children to a new project. Closed 2010-09-20
Duplicated by Redmine - Defect #7023: Copy Function Doesn't Copy SubTasks Closed 2010-12-02
Duplicated by Redmine - Defect #11790: Copy ticket: no sub tickets Closed
Duplicated by Redmine - Feature #7328: Cloning/Duplicating an Issue with subtasks should allow t... Closed 2011-01-14
Duplicated by Redmine - Feature #11076: Copy/duplicate all subtasks when copying the main task Closed

Associated revisions

Revision 10327
Added by Jean-Philippe Lang about 5 years ago

Option to copy subtasks when copying issue(s) (#6965).

Revision 10328
Added by Jean-Philippe Lang about 5 years ago

Adapt subtasks copy when copying a project (#6965).

Revision 10329
Added by Jean-Philippe Lang about 5 years ago

Do not copy subtasks twice when copying an issue and its descendants (#6965).

Revision 10330
Added by Jean-Philippe Lang about 5 years ago

Filling locales (#6965).

History

#1 Updated by John S almost 7 years ago

Anyone able to give guidance on how to do this? I am trying to make this change on my own. I believe the change needs to be made in the issues.rb model and the issue_moves\new.rhtml view... perhaps changes to the issue_moves_controller.rb file need to be made as well... and the en.yml file?

Any help is appreciated.

Thanks!

#2 Updated by yannick quenec'hdu over 6 years ago

John S wrote:

Anyone able to give guidance on how to do this? I am trying to make this change on my own. I believe the change needs to be made in the issues.rb model and the issue_moves\new.rhtml view... perhaps changes to the issue_moves_controller.rb file need to be made as well... and the en.yml file?

Any help is appreciated.

Thanks!

+1

#3 Updated by Zbynek Drlik over 6 years ago

+1

#4 Updated by Etienne Massip about 6 years ago

  • Assignee deleted (Jean-Philippe Lang)
  • Target version set to Candidate for next major release

#5 Updated by Etienne Massip about 6 years ago

Patch can be found in #7023.

#6 Updated by Tiemo Vorschuetz almost 6 years ago

Hi,

I also was looking for a solution to copy all subtasks when copying the main task. In addition it was necessary for me to allow copying across projects including all subtasks. The author of all newly created tasks should be automatically set to the user who copied the main task (#8452).

I merged all these approaches into a plugin for 1.3.1.

Please feel free to test it.

Regards
Tiemo

#7 Updated by Radek Karban over 5 years ago

+1

#8 Updated by Cassiano Monteiro over 5 years ago

+1!!

Great plugin Tiemo, thanks a lot! I was looking for something like this long time ago!

One thing: it doesn't copy the relationships between issues along them. Also, when I tested it, it assigned the target version to the child issues, but not to the parent one. Can you take a look at that?

Many thanks!

#9 Updated by Ladislav Nesnera over 5 years ago

Sounds like perfect feature but doesn't work with 1.4.2 :(

rake db:migrate_plugins RAILS_ENV=production
(in /usr/share/redmine)
undefined method `move_to_project_without_transaction' for class `Issue'

Tasks: TOP => db:migrate_plugins => environment
(See full trace by running task with --trace)

#10 Updated by Anthony Topper over 5 years ago

+1

#11 Updated by Rafael Vargas over 5 years ago

Plugin works just fine on 1.3.0. Thanks a lot!

#12 Updated by Rolf Stetter about 5 years ago

+1

Anybody tested the plugin successfully with 2.0.3?

To me this seems rather a major bug to be fixed within the core.

#13 Updated by Jean-Philippe Lang about 5 years ago

  • Assignee set to Jean-Philippe Lang
  • Target version changed from Candidate for next major release to 2.1.0

#14 Updated by Jean-Philippe Lang about 5 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Feature added in r10327.

#15 Updated by Jean-Philippe Lang about 5 years ago

  • Subject changed from Copy Function - Option to Copy Subtasks? to Option to Copy Subtasks when copying an issue

#16 Updated by Teruo Kawamoto about 5 years ago

Great!!
I'm looking forward to this release.

#17 Updated by Go MAEDA over 1 year ago

  • Duplicated by Feature #7328: Cloning/Duplicating an Issue with subtasks should allow to clone/duplicate the sub-tasks as well added

#18 Updated by Go MAEDA over 1 year ago

  • Duplicated by Feature #11076: Copy/duplicate all subtasks when copying the main task added

Also available in: Atom PDF