Project

General

Profile

Actions

Defect #18068

closed

Copying Projects & Parent Child Issues

Added by James H over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Issues that have parent child relationships only show up as nested in a tree view in the issues list when the issues are in order (parent first then children immediately below it).

When copying projects...
  • If I have the issues in order to show up in a nested view, the parent issue still gets copied first before its children and shows up incorrect.
  • If I put the issues in opposite order, it still behaves similarly.
  • I have no way to have a nested view of issues after copying a project.

i.e.
Project Issues to be copied:
- Child Issue 1.1
- Child Issue 1.2
- Child Issue 1.3
Parent Issue 1
Parent Issue 2
- Child Issue 2.1
- Child Issue 2.2
Parent Issue 3
- Child Issue 2.1
- Child Issue 2.2

becomes:
- Child Issue 1.1
- Child Issue 1.2
- Child Issue 1.3
Parent Issue 1
- Child Issue 2.1
- Child Issue 2.2
Parent Issue 2
- Child Issue 2.1
- Child Issue 2.2
Parent Issue 3


Files

copy_source.png (35.4 KB) copy_source.png Toshi MARUYAMA, 2014-11-08 12:08
copy_result.png (36.9 KB) copy_result.png Toshi MARUYAMA, 2014-11-08 12:08
Actions #1

Updated by Toshi MARUYAMA over 9 years ago

  • Related to Feature #7907: Display Issues in a hierarchy (tree) added
Actions #2

Updated by Toshi MARUYAMA over 9 years ago

  • Related to deleted (Feature #7907: Display Issues in a hierarchy (tree))
Actions #3

Updated by Toshi MARUYAMA over 9 years ago

source:tags/2.4.7/app/models/project.rb#L852 says "parent issues get copied before their children".
If you want to see issue as tree, you need to sort by id or parent issue.
For more details, see #7907.

Copy source:

Copy result:

Actions

Also available in: Atom PDF