# Bug OP-14882 - Missing "cause" in WP journal when closing duplicates

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-14882

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.0.0 |
| Observed in versions | 14.1.0 |
| Sprint | 15.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Oliver Günther |
| Product manager |  |
| Developers | Deleted user |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

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/>)

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*)
    
      - a cause message is added: "The status was automatically updated by the duplicated work package \#123123123"
