Content
View differences
Updated by Oliver Günther over 1 year ago
Reproduction steps:
* user A creates a work package "Original WP"
* user B creates a work package "Duplicate WP"
* In "Original WP" create a relationship "Duplicated by" to "Duplicate WP"
* In "Original WP" add a comment "This is some unrelated comment about the weather"
* User A closes "Original WP" which leads to "Duplicate WP" to be set to closed, too (this is documented behavior [https://www.openproject.org/docs/user-guide/work-packages/work-package-relations-hierarchies/](https://www.openproject.org/docs/user-guide/work-packages/work-package-relations-hierarchies/))
Unexpected behavior:
* "Duplicate WP" now has an entry in the **Activity** tab with the text "This is some unrelated comment about the weather" attributed to user A. That can be really confusing as that is a comment in the context of "Original WP" and might not be related to setting the status to "closed". Thus, copying it creates confusion.
* There is no explanation in "Duplicate WP" that it was closed by closing "Original WP". That side effect is not explained.
Expected behavior:
* Do not copy the last comment of "Original WP" to "Duplicate WP".
* In "Duplicate WP"
* The status change remains an activity entry (e.g., Status changed from _new_ to _closed_)
* add a cause message is added: to the journal entry for changing the WP status: "The status was automatically updated by the set to "<the new closed status>" as the duplicated work package #123123123" #123123123 was set to "<the new closed status>"".
* user A creates a work package "Original WP"
* user B creates a work package "Duplicate WP"
* In "Original WP" create a relationship "Duplicated by" to "Duplicate WP"
* In "Original WP" add a comment "This is some unrelated comment about the weather"
* User A closes "Original WP" which leads to "Duplicate WP" to be set to closed, too (this is documented behavior [https://www.openproject.org/docs/user-guide/work-packages/work-package-relations-hierarchies/](https://www.openproject.org/docs/user-guide/work-packages/work-package-relations-hierarchies/))
Unexpected behavior:
* "Duplicate WP" now has an entry in the **Activity** tab with the text "This is some unrelated comment about the weather" attributed to user A. That can be really confusing as that is a comment in the context of "Original WP" and might not be related to setting the status to "closed". Thus, copying it creates confusion.
* There is no explanation in "Duplicate WP" that it was closed by closing "Original WP". That side effect is not explained.
Expected behavior:
* Do not copy the last comment of "Original WP" to "Duplicate WP".
* In "Duplicate WP"
* The status change remains an activity entry (e.g., Status changed from _new_ to _closed_)
*