# Bug SPAR-225 - Creating a child from work package list does not properly update parent's dates

Project: Stream Planning and Reporting
Status: closed
URL: https://community.openproject.org/work_packages/SPAR-225

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.4.2 |
| Observed in versions | 15.4.0 |
| Bug found in version (deprecated) | 15.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Christophe Bliard |
| Product manager |  |
| Developers | Christophe Bliard |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Go to a project in Gantt view

2.  Create a parent work packages with dates from Wednesday to Thursday

3.  In the list view, right click the parent and select "Create new child"
    
    1.  the creation forms opens in the right pane

4.  In the creation form, select dates from Thursday to Friday, then click "Save" button at the bottom

### What is the buggy behavior?

  - The parent dates are not updated to match the child dates

### What is the expected behavior?

1.  Parent scheduling mode is switched to automatic (this part is ok)

2.  Parent dates are updated to match its child's dates

### Screenshots and other files

Actual:

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

Expected:

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

### Environment information

**OpenProject installation type**

  - Hosted cloud edition

**OpenProject version**

15.4.1 (openproject-stage)

Core build: [c141c29274a02817bb5578e51c61d237e570b1e9](https://github.com/opf/openproject/commits/c141c29274a02817bb5578e51c61d237e570b1e9)

Product version: [9bcd01b60849270319af566763391f36b83755e7](https://github.com/opf/saas-openproject/commits/9bcd01b60849270319af566763391f36b83755e7)

Core version: (future) OpenProject 15.4.2

Last change on: 24.03.2025 18:49

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [x] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

English
