User has a project with one phase and wants to flip the project structure so that the phase becomes the main parent project and the main parent project becomes a phase under it. However, on changing the project hierarchy, user gets an API error message.
This is the expected behavior in Core. You cannot set a phase as the parent of its parent project (swap projects) as it will lead to a cyclic relationship between them. If you want to flip the project structure, you should first unlink the phase from the main project and then set it as the parent. To do so, follow these steps:
- On the Projects screen, go to the General > Details tab for the phase that you want to set as the parent.
- Clear up the Parent Project field for the phase to unlink it from the main parent project. Click Save. The phase is now a standalone project.
- Now, go to General > Details tab for the main parent project and set the standalone project from above (which was originally the phase) as its Parent Project.
- Click Save.
The parent project and its phase are flipped successfully.