Content
View differences
Updated by Henriette Darge almost 4 years ago
### Acceptance criteria
#### Basic - Copied from <mention class="mention" data-id="31992" data-type="work_package" data-text="#31992">#31992</mention>
* For work packages without start/finish dates but _with_ duration:
* they are not visible until a date is specified
* (they can of course be accessed using the "Add Existing" function in the team planner)
* the width of a card that is dragged onto the team planner (from the left-hand "Add Existing" panel, for example) is relative to the total duration of that work package (within the limits of the viewport, of course).
* Once dragged, the start date is set and therefore the finish date is also derived.
* If the user modifies a work package via the drag handles on the left/right edges of the cards on the Team planner, both the start/finish date as well as the duration are altered in lockstep.
#### Additional
**Work packages spanning non-working days**
* Cards will span over a non-working days:
* If non-working days are enabled (via the date picker), a 3-day work package from Thursday will span Thursday to Saturday _(assuming Sat/Sun non-working)._
* If non-working days are not-enabled (via the date picker), 3-day work package from Thursday will span Thursday to Monday _(assuming Sat/Sun non-working)._
* Cards themselves will **not** not indicate whether non-working days are included or not.
* Automatically scheduled work packages whose dates are derived should be blocked from dragging (as is the case currently on the GANTT view for parent work packages).
### **Creating new cards by clicking/selecting dates**
* When clicking on a single date that is a non-working day
* the work package will be scheduled for that day and
* "Include non-working days" will be enabled in the date picker
* Selecting a range of days that includes a non-working day
* the work package will be scheduled on the selected days _excluding_ non-working days (eg. drag-selecting Thursday to Monday will create a work package that spans these days but where duration is 3 days),
* "Include non-working days" will _not_ be enabled in the date picker
* Clicking a day or selecting a range of days that _does not_ include non-working days
* The work package will be scheduled on the selected days
* "Include non-working days" will _not_ be enabled in the date picker
### **Dragging or resizing an existing work package**
* Moving a work package (where the "include non-working days checkbox is NOT selected) to a start date that is a non-working day is blocked visually (similar to the permission-based blocking)
* This will look the same as when you try to drag a parent card in the GANTT chart.
* To move this card to a non-working start date, the user has to open the date picker and select "Include non-working days"
* Moving a card such that it spans non-working days is possible.
* The start date is the newly selected start date.
* The finish date is adjusted to maintain duration (by skipping non-working days).
### **Dragging or resizing a work package that includes non-working days**
* There are no limitations for manually scheduled work package
#### Basic - Copied from <mention class="mention" data-id="31992" data-type="work_package" data-text="#31992">#31992</mention>
* For work packages without start/finish dates but _with_ duration:
* they are not visible until a date is specified
* (they can of course be accessed using the "Add Existing" function in the team planner)
* the width of a card that is dragged onto the team planner (from the left-hand "Add Existing" panel, for example) is relative to the total duration of that work package (within the limits of the viewport, of course).
* Once dragged, the start date is set and therefore the finish date is also derived.
* If the user modifies a work package via the drag handles on the left/right edges of the cards on the Team planner, both the start/finish date as well as the duration are altered in lockstep.
#### Additional
**Work packages spanning non-working days**
* Cards will span over a non-working days:
* If non-working days are enabled (via the date picker), a 3-day work package from Thursday will span Thursday to Saturday _(assuming Sat/Sun non-working)._
* If non-working days are not-enabled (via the date picker), 3-day work package from Thursday will span Thursday to Monday _(assuming Sat/Sun non-working)._
* Cards themselves will **not**
* Automatically scheduled work packages whose dates are derived should be blocked from dragging (as is the case currently on the GANTT view for parent work packages).
* When clicking on a single date that is a non-working day
* the work package will be scheduled for that day and
* "Include non-working days" will be enabled in the date picker
* Selecting a range of days that includes a non-working day
* the work package will be scheduled on the selected days _excluding_ non-working days (eg. drag-selecting Thursday to Monday will create a work package that spans these days but where duration is 3 days),
* "Include non-working days" will _not_ be enabled in the date picker
* Clicking a day or selecting a range of days that _does not_ include non-working days
* The work package will be scheduled on the selected days
* "Include non-working days" will _not_ be enabled in the date picker
* Moving a work package (where the "include non-working days checkbox is NOT selected) to a start date that is a non-working day is blocked visually (similar to the permission-based blocking)
* This will look the same as when you try to drag a parent card in the GANTT chart.
* To move this card to a non-working start date, the user has to open the date picker and select "Include non-working days"
* Moving a card such that it spans non-working days is possible.
* The start date is the newly selected start date.
* The finish date is adjusted to maintain duration (by skipping non-working days).
* There are no limitations for manually scheduled work package