Defect #22342

When copying issues to a different project, subtasks /w custom fields not copied over

Added by Joe Price over 2 years ago. Updated over 2 years ago.

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

0%

Category:Custom fields
Target version:3.2.2
Resolution:Fixed Affected version:3.2.0

Description

My environment:

Environment:
  Redmine version                3.2.0.stable
  Ruby version                   2.0.0-p481 (2014-05-08) [x86_64-openbsd]
  Rails version                  4.2.5
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.9
  Filesystem
Redmine plugins:
  no plugin installed

Redmine production.log:

Could not copy subtask #1878 while copying #1874 to #1993 due to validation errors: JobNumber cannot be blank
Could not copy subtask #1879 while copying #1874 to #1993 due to validation errors: JobNumber cannot be blank
Could not copy subtask #1884 while copying #1874 to #1993 due to validation errors: JobNumber cannot be blank
Could not copy subtask #1886 while copying #1874 to #1993 due to validation errors: JobNumber cannot be blank
Could not copy subtask #1888 while copying #1874 to #1993 due to validation errors: JobNumber cannot be blank

JobNumber IS there in the subtasks. Both the source and target projects have the same fields.

Copying to the same project works, but copying to a different project has the above error.

Originally discussed here: Custom fields not copied over projects


Related issues

Related to Redmine - Defect #11315: When I copy a project it does not copy the issues custom... Needs feedback

Associated revisions

Revision 15318
Added by Jean-Philippe Lang over 2 years ago

Fixed that subtasks lose their custom fields when copying an issue to a different project (#22342).

History

#1 Updated by Joe Price over 2 years ago

A work around is to copy issues with subtasks using custom fields to the same project and then move the issues to another project.

#2 Updated by Jean-Philippe Lang over 2 years ago

  • Target version set to 3.2.2

#3 Updated by Jean-Philippe Lang over 2 years ago

  • Subject changed from When copying issues, subtasks /w custom fields not copied over to When copying issues to a different project, subtasks /w custom fields not copied over
  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Fixed in r15318.

#4 Updated by Jean-Philippe Lang over 2 years ago

  • Status changed from Resolved to Closed

#5 Updated by Toshi MARUYAMA over 2 years ago

  • Description updated (diff)

#6 Updated by Mischa The Evil over 1 year ago

  • Related to Defect #11315: When I copy a project it does not copy the issues custom fields' values added

Also available in: Atom PDF