Meets #9931: APIv2 does not rewire parents correctly

[``* `#9931` APIv2 does not rewire parents correctly``](https://www.openproject.org/work_packages/9931)