Content
View differences
Updated by Niels Lindenthal almost 5 years ago
**As** an OpenProject user
**I want** to calculate the work package start and end dates based on the duration
**so** that I only have to set the duration.
# **Acceptance criteria:**
* In the date picker modal there is an form field `duration`.
* When entering a duration the dates are derived
* In the work packages list there is a column "duration". When clicking on this the date modal with the date picker is opened.
* In all cases the duration is consistent with the start and the finish date. It is not possible to create a duration of 8 days for a task that starts and finishs in the same week.
# Open
## Scenario 1:
* Setup
* Start date: Monday, February 8 2021
* Finish date: empty
* Duration: empty
* Change
* User enters a duration of 10 days
* Expected result:
* The finish date is changed to Friday, February 19 2021
## Scenario 2
* Setup
* Start date: empty
* Finish date: empty
* Duration: empty
* Change
* User enters a duration of 10 days
* Expected result:
* No date is added
## Scenario 3
* Setup
* Start date: empty
* Finish date: Friday, February 19, 2021
* Duration: empty
* Change
* User enters a duration of 10 days
* Expected result:
* The start date is changed to Monday, February 8, 2021
## Scenario 4
* Setup
* Start date: Monday, February 8, 2021
* Finish date: Friday, February 19, 2021
* Duration: 10
* Change
* User enters a duration of 11 days
* Expected result:
* The finish date is changed to Monday, February, 22 2021
## Scenario 5
* Setup
* Start date: Monday, February 8, 2021
* Finish date: Monday, February 22, 2021
* Duration: 11
* Change
* User enters a duration of 10 days
* Expected result:
* The finish date is changed to Friday, February, 19, 2021
# Scenario 6
* Setup
* Two workpackages
* Task 1: Monday - Tuesday
* Task 2: no dates, no duration
* Change
* Task 2 follows Task 1
* Expected result
* Task 2: Starts Wednesday, Finish Date Wednesday, Duration = 1
# Visuals
<figure class="image op-uc-figure" style="width:55.55%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20507/content"></div></figure>
# Seed Data
**Static queries in section "Default data":**
* Gantt chart: Add duration column after column finish date:
**Queries in section favorite views**
* Project plan (Query ID 1): Add duration column after column finish date
* Project plan (Query ID 14): Add duration column after column finish date
# Full screen view
* Currently the status selection is below the subject at the same position for all work package types.
* We also move the dates and the curation to this area (visuals tbd).
* For milestones there is no duration by definition.
# Out-of-Scope
* Consider weekends and holidays (##18416)
**I want** to calculate the work package start and end dates based on the duration
**so** that I only have to set the duration.
# **Acceptance criteria:**
* In the date picker modal there is an form field `duration`.
* When entering a duration the dates are derived
* In the work packages list there is a column "duration". When clicking on this the date modal with the date picker is opened.
* In all cases the duration is consistent with the start and the finish date. It is not possible to create a duration of 8 days for a task that starts and finishs in the same week.
# Open
## Scenario 1:
* Setup
* Start date: Monday, February 8 2021
* Finish date: empty
* Duration: empty
* Change
* User enters a duration of 10 days
* Expected result:
* The finish date is changed to Friday, February 19 2021
## Scenario 2
* Setup
* Start date: empty
* Finish date: empty
* Duration: empty
* Change
* User enters a duration of 10 days
* Expected result:
* No date is added
## Scenario 3
* Setup
* Start date: empty
* Finish date: Friday, February 19, 2021
* Duration: empty
* Change
* User enters a duration of 10 days
* Expected result:
* The start date is changed to Monday, February 8, 2021
## Scenario 4
* Setup
* Start date: Monday, February 8, 2021
* Finish date: Friday, February 19, 2021
* Duration: 10
* Change
* User enters a duration of 11 days
* Expected result:
* The finish date is changed to Monday, February, 22 2021
## Scenario 5
* Setup
* Start date: Monday, February 8, 2021
* Finish date: Monday, February 22, 2021
* Duration: 11
* Change
* User enters a duration of 10 days
* Expected result:
* The finish date is changed to Friday, February, 19, 2021
# Scenario 6
* Setup
* Two workpackages
* Task 1: Monday - Tuesday
* Task 2: no dates, no duration
* Change
* Task 2 follows Task 1
* Expected result
* Task 2: Starts Wednesday, Finish Date Wednesday, Duration = 1
# Visuals
<figure class="image op-uc-figure" style="width:55.55%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20507/content"></div></figure>
# Seed Data
**Static queries in section "Default data":**
* Gantt chart: Add duration column after column finish date:
**Queries in section favorite views**
* Project plan (Query ID 1): Add duration column after column finish date
* Project plan (Query ID 14): Add duration column after column finish date
# Full screen view
* Currently the status selection is below the subject at the same position for all work package types.
* We also move the dates and the curation to this area (visuals tbd).
* For milestones there is no duration by definition.
# Out-of-Scope
* Consider weekends and holidays (##18416)