Copy issue and its subtasks
When copying an issue with subtasks rgt of root issue is wrong calculating.
Steps to reproduce:
1. Create an issue (let's say issue0)
2. add some subtasks to issue0
3. create new issue from copying issue0 (on copy form mark "Copy subtasks")
- copy of issue0
- copy of issue0's subtasks
And issue0's copy creating with wrong rgt. Redmine then fails to find a tree structure and relate all subtasks to parent (root) issue.
The lft and rgt value of copied issues look good to me. Could you explain more details?
sqlite> select id, subject, lft, rgt from issues where root_id = 21; id subject lft rgt ---------- ---------- ---------- ---------- 21 issue0 1 6 22 subtask1 2 3 23 subtask2 4 5
#2 Updated by Dmitry Makurin 9 months ago
- Status changed from New to Resolved
Yeah that looks fine. In our case copied root issue had rgt set to 2 (even thou it has multiple subtasks). Probably something is broken in our environment. I'll try to find out what caused that strange behavior.
Thank you for the reply, Go!