# Bug OP-11169 - Work packages can have start_dates > due_dates

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 12.3.0 |
| Observed in versions | 12.2.0 |
| Sprint | 12.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.2.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

### 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.  ?? Unclear, have a parent and child that gets dates changes according to these journal changes

```text
PARENT JOURNALS
# USER ID, CHANGES,CREATED_AT, UPDATED_AT
 [1, {"due_date"=>[Sat, 06 Nov 2021, Sat, 13 Nov 2021], "start_date"=>[Sat, 06 Nov 2021, Sat, 13 Nov 2021]}, "2021-11-08T11:36:05Z", "2021-11-08T11:36:05Z"],
 [1, {"due_date"=>[Sat, 13 Nov 2021, Sun, 21 Nov 2021], "start_date"=>[Sat, 13 Nov 2021, Sun, 21 Nov 2021]}, "2021-11-08T11:37:01Z", "2021-11-08T11:37:01Z"],
 [1, {"due_date"=>[Sun, 21 Nov 2021, Fri, 26 Nov 2021], "start_date"=>[Sun, 21 Nov 2021, Fri, 26 Nov 2021]}, "2021-11-08T11:37:10Z", "2021-11-08T11:37:10Z"],
 
 # CHILD changes
 [1, {"start_date"=>[nil, Sat, 06 Nov 2021], "parent_id"=>[nil, 43]}, "2021-11-02T10:25:16Z", "2021-11-02T10:25:16Z"],
 [1, {"status_id"=>[1, 12]}, "2021-11-08T11:20:32Z", "2021-11-08T11:20:32Z"],
 [1, {"start_date"=>[Sat, 06 Nov 2021, Sat, 13 Nov 2021]}, "2021-11-08T11:36:05Z", "2021-11-08T11:36:05Z"],
 [1, {"start_date"=>[Sat, 13 Nov 2021, Sun, 21 Nov 2021]}, "2021-11-08T11:37:01Z", "2021-11-08T11:37:01Z"],
 [1, {"due_date"=>[nil, Sun, 21 Nov 2021], "start_date"=>[Sun, 21 Nov 2021, Fri, 26 Nov 2021]}, "2021-11-08T11:37:09Z", "2021-11-08T11:37:09Z"]]
```

### What is the buggy behavior?

_Please describe the bug with as most details as possible. Example:_

*   The start date is &gt; due date
*   This causes bugs in the frontend as we try to format these date ranges

### What is the expected behavior?

_Describe how the application should behave like. Example:_

1.  It should not be possible to end up having start date &gt; due date
