# Feature OP-12079 - Journalise and display work package date changes caused by relations/children in the Activity tab 

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 13.0.0 |
| Sprint | 13.0.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

***As** a project member,*  
***I want to** know when start/finish dates of work packages are changed by related/child work packages (and not directly on the work package itself)*  
***so that** I'm never confused as to what or who triggered the date change.*

### Acceptance criteria

When dates of a work package are changed as a result of date changes to child work packages or related work packages:

  - Journal date changes triggered by external work packages.
      - No longer post the comment "Updated automatically by changing values within child work package \#{id}".
  - Display this change in the activity tab in this format:

>   - **Dates changed** by changes to related [Task <mention class="mention" data-id="8606" data-type="work_package" data-text="#8606">#8606</mention>: Second level child](https://qa.openproject-edge.com/work_packages/8606)
>   - **Start date** changed to 12/04/2023
>   - **Finish date** changed to 19/04/2023
>   - **Duration** changed from 5 days to *6 days*

  - Use a generic format, without specifying the type of relationship:
      - **"Dates changed** by changes to related {type} \#{[*id}*](https://community.openproject.org/work_packages/14525): {subject}"
  - Continue attributing the date change on this (the affected) work package to the user who made the change in the related/child work package.
  - In the aggregation of updates, only name the responsible work package for the last update.
  - Update phrasing when dates are affected by changes to working days:
      - "**Dates changed** by changes to working days ({changes})"
          - Changes can be days of the week: "{Day of the week} is now non-working"
          - Or individual days: "{Specific date} is now non-working")

### Out of scope

Naming the type of relationship in the journalised activity entry was de-scoped from this feature. This is now described in another feature: <mention class="mention" data-id="49407" data-type="work_package" data-text="###49407">###49407</mention>

### Archived bug report

> **Steps to reproduce**
> 
> 1.  Login to QA Edge and create 2 WPs in predecessor-follower relation
> 2.  Set dates on both making sure that the follower starts the day after the predecessor finishes
> 3.  Change the finish date of the predecessor by choosing any date in the future so that the start date of the follower gets automatically updated
> 
> Go to the follower WP Activity tab and check comments for the latest changes
> 
> **What is the buggy behavior?**
> 
>   - There is a comment that dates are changed, however we don't know that it was automatically changed (rescheduled) because just judging from the comment, we might think that the user changed them.
> 
> **<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/51963/content">**
> 
> **What is the expected behavior?**
> 
> 1.  It would be good to have an automatic message similar to "Updated automatically by changing values within child work package" comment whenever dates on the follower change automatically so that we know how and why dates were changed.
> 
> **Important note**
> 
> There is already a bug ticket for missing automatic comment on parent-child work packages: <mention class="mention" data-id="46312" data-type="work_package" data-text="#46312">\#46312</mention>
> 
> **OpenProject version**
> 
> 12.5.0
