# Implementation OP-10579 - Handle updating schedule (start/finish dates) as non working days are changed

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

## OPEN POINTS

_No work packages_

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Designer |  |
| Developers |  |

## Technical details

| Attribute | Value |
| --- | --- |
| Target versions | 12.3.0 |
| Module |  |
| Requires doc change | No |

## Belongs to

_No work packages_

## Previous chunks

_No work packages_

## Next chunks

| ID | Subject | Status | Assignee |
| --- | --- | --- | --- |
| OP-10878 | Journalling updates for work packages when non-working days settings change | closed |  |

## Estimates

| Attribute | Value |
| --- | --- |
| Work | 5d 0h |

## Details

| Attribute | Value |
| --- | --- |
| Date | 2022-05-04 – 2022-09-30 |
| % Complete | 0% |
| Category |  |
| Sprint | 12.3.0 |
| Backlog bucket |  |
| Priority | Medium |
| List |  |
| Pull preview |  |
| Labels |  |

## Description

Copied from <mention class="mention" data-id="31992" data-type="work_package" data-text="#31992">\#31992</mention> (which is still authoritative, so double check the requirements there)

> ### Change in set of working days (instance admin)
> 
>   - When an administrator changes non-working days via instance admin settings (adds or removes a working day), this will affect dates of scheduled work packages. If non-working days are added or removed for the instance by an admin, the *duration* is preserved, which might mean the start and finish dates might change:
>       - \[...\]
>       - If a work package included a date that is now a non-working day, the finish date moves to the corresponding number of now-excluded days to maintain duration.
>       - If a work package was scheduled to start on a date it is now a non-working day, the start date moves to the earliest working day in the future (and the finish date changes by consequence).
>       - Even if a work package does not span or included a day that is now a non-working day, it might nevertheless be affected because of relations.
>           - Eg. A preceding work package has pushed its dates forwards or backwards such that it now spans a non-working day. In this case, the work package will be pushed/pulled as it does today, and the work package will be rescheduled as any other work package (it adapt it start and finish dates to maintain duration).
>       - \[...\]

Journal updates are handled in the implementation work package <mention class="mention" data-id="43640" data-type="work_package" data-text="#43640">\#43640</mention>.
