Content
View differences
Updated by Alexander Stock over 2 years ago
### Steps to reproduce
1. Create this project structure:
0 Main Project
0.1 Sub Project
0.2 Sub Project
2. Add phases to each sub project. E.g. Phase 1, Phase 2, Phase 3
3. Add precedes/follow relations between them, so that Phase 2 follow Phase 1 etc.
4. Do this in every project, you now have a structure like this
0 Main Project
Phase 1
Phase 2
Phase 2
0.1 Sub Project
Phase 1
Phase 2
Phase 2
0.2 Sub Project
Phase 1
Phase 2
Phase 2
5. Now, set additional precedes/follow relations between the phase of the different projects: Phase 1 of "0.1 Sub Project" follows Phase 3 of "0 Main Project", then Phase 1 of "0.2 Sub Project" follows Phase 3 of "0.1 Sub Project"
6. Make all the projects template projects
7. Create the same project structure with the template you just created, so you have
0 New Main Project (from template 0 Main Project)
0.1 New Sub Project (from template 0.1 Sub Project)
0.2 New Sub Project (from template 0.2 Sub Project)
8. Next, check the relations of the newly created phases.
### What is the buggy behavior?
* There are duplicated and unnecessary relations that point to the work packages from the template project, besides the correct relations that have been created with new projects. For example, the way each work package is set, almost all of them have exactly 1 predecessor and 1 follower (except for the first and last one that only have respectively just one follower and one predecessor). However, we now also have an additional relation that points to the work package from the template
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/82200/content">
### What is the expected behavior?
1. Only the necessary relations should be created.
### Important note
Reported in helpdesk ticket # 10583 in: https://helpdesk.openproject.org/web#id=10583&cids=1&menu\_id=232&action=330&model=helpdesk.ticket&view\_type=form
### Environment information
_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_
**OpenProject version**
_Reproduced on QA Stage 13.1.0_
1. Create this project structure:
0.1 Sub Project
0.2 Sub Project
3. Add precedes/follow relations between them, so that Phase 2 follow Phase 1 etc.
4. Do this in every project, you now have a structure like this
Phase 1
Phase 2
Phase 2
Phase 1
Phase 2
Phase 2
Phase 1
Phase 2
Phase 2
5. Now, set additional precedes/follow relations between the phase of the different projects: Phase 1 of "0.1 Sub Project" follows Phase 3 of "0 Main Project", then Phase 1 of "0.2 Sub Project" follows Phase 3 of "0.1 Sub Project"
7. Create the same project structure with the template you just created, so you have
0.1 New Sub Project (from template 0.1 Sub Project)
0.2 New Sub Project (from template 0.2 Sub Project)
* There are duplicated and unnecessary relations that point to the work packages from the template project, besides the correct relations that have been created with new projects. For example, the way each work package is set, almost all of them have exactly 1 predecessor and 1 follower (except for the first and last one that only have respectively just one follower and one predecessor). However, we now also have an additional relation that points to the work package from the template
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/82200/content">
### What is the expected behavior?
1. Only the necessary relations should be created.
### Important note
Reported in helpdesk ticket # 10583
### Environment information
_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_
**OpenProject version**
_Reproduced on QA Stage 13.1.0_