# Feature OP-7385 - Prevent losing dates when adding the first child work package to an automatically scheduled work package

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 11.0.0 |
| Sprint | 11.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 |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**Scenario:**

1.  Create a work package "Parent 1".
2.  Add a start-date and a finish-date.
3.  Add a work child element

**Current behavior:**

  - By adding a child work package the dates of the parent work package get set automatically and by that override the previously set dates.
  - The dates in the create form of the child work package is empty. If the setting `work_package_startdate_is_adddate` is active, the start date is set to today.

**Expected behavior:**

  - In the create form of the sub work package the parent's dates are pre-selected. If only one of the dates exist, only one of the dates are set (e.g. only parent's finish date is set, then only the child's finish date is set.
  - The behaviour does not differ depending on the parent's scheduling mode.
  - The behaviour does not differ depending on the existence of other children.
  - The parent's dates take precedence over `work_package_startdate_is_adddate`
