# Bug OP-14127 - Estimated time is not updated when a sub-WP is delete.

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.2.0 |
| Observed in versions | 13.1.0 |
| Sprint | 13.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.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 |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Before filing a report

*Before you file a report, please ensure you are running the latest version of OpenProject and*   
*have searched for similar bug reports.*

### Steps to reproduce

*Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:*

1.  Login as a user and select a project with :
    1.  WP A with H as an estimated time "H (H.a + H.b + H.c)
    2.  sub WP A.a with H.a as an estimated time
    3.  sub WP A.b with H.b as an estimated time
    4.  sub WP A.c with H.c as an estimated time
2.  Delete the sub WP A.a
3.  WP A's estimated time is not update.

### What is the buggy behavior?

When a WP has several sub-WP with estimated time, if one of those sub-WP is deleted the parent-WP calculation is not updated

### What is the expected behavior?

When a sub WP is delete, its parents should update its estimated time

### Important note

### **Logs**

### Screenshots and other files

Before delete (Thefirst WP with 9h is the example):

*<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/88515/content">*

After delete (9h was not update to 3h):

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/88516/content">

WP page view :

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/88518/content">

### 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 installation type**

- [ ] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [x] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

Docker on premise  v13.1.1

**Browser**

- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [x] Edge

**Language**

*French*
