Project

General

Profile

Rebuild project hierarchy

Added by Dorice Nyamy over 5 years ago

Hello,
I have tried a massive update of projects parent, directly from the data base, changing the parent_id. I was not yet aware of the lft and rgt fields which are meant to manage project hierarchy.
Now my projects hierarchy is completely messed up. What is displayed on the projects view does not correspond to the reality.
Going through the forum I have seen some inputs about this, but too old, and the solution given are not longer usable, I am afraid (paths, names...)
Please how to rebuild my project tree on redmine 3.4 ?
Thanks in advance
Dorice


Replies (2)

RE: Rebuild project hierarchy - Added by Dorice Nyamy over 5 years ago

Answering to my post
I have found the solution ;
Calling "Project.rebuild_tree!" from rails console ("rails console -e production") did the trick !
Regards
Dorice

RE: Rebuild project hierarchy - Added by Indra Kurnia almost 5 years ago

Hi Dorice,

I am facing same problem.
Thanks for the solution. it work like a charm.

    (1-2/2)