# Feature OP-9925 - Global work schedule - Add calendar and import calendar

Project: OpenProject
Status: specified
URL: https://community.openproject.org/work_packages/OP-9925

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 6 |
| 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 |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Marc Alcobé |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work | 25d 0h |
| Labor costs |  |

## Description

**As** an Admin of an OpenProject instance  
**I want to** add all the public holidays of my region easily  
**so that** any planning of tasks around the specific dates are clear and have a proper estimation.

### **Acceptance criteria**

The button to add calendars will be always situated on top of the calendar view on the left side. There is two ways to add calendars in the &quot;Working days&quot; settings:

*   **Public holidays from your region:** For instances are based on/created on a country or region for which OP has in-built public holidays calendars, a list with regional calendars will be displayed.
    *   Once one calendar is selected, the view will be always switched to the full year so you can see all the days added for this year.
    *   The selected region it will be displayed in the list as selected.
    *   Only one public calendar can be selected at the same time, so selecting another public calendar will always erase all days added by the previous one and load the new ones.
    *   Non-working days that were manually added by the user remain unaffected.

<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32027/content"></div></figure>

<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32028/content"></div></figure>

<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32029/content"></div></figure>

*   **Importing a local calendar:** Besides the list of public holidays, there will always be a last option that allows you to import a calendar file from your computer. This allows you to upload .ics files.
    *   Once a file has been successfully imported, a success toast message will be displayed on the top and the view will be always switched to the year view to see all the imported days.
    *   The only way to remove these manually-imported days calendar files is to remove them one by one.

<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32030/content"></div></figure>

<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32031/content"></div></figure>

<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32032/content"></div></figure>

###   

### Edge cases

*   **Public holidays from your region not available:** In the case that OP does not have any in-built list of holidays for a selected region, the button will be directly called &quot;Import calendar&quot; instead of &quot;Add calendar&quot;, and will open the file browser from your computer when you click on it.

<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32033/content"></div></figure>

*   **Multiple events for the same day:** In the case of switching or importing a calendar that contains dates that are already pointed as non-working days, the last ones loaded will always override the previous ones.
*   **Removing a day from a public calendar:** this will only affect the day that has been deleted in the local instance, not the complete public calendar. Dates are deleted one by one and not by calendar.

### Out of scope

Subscribe to external calendars, e.g. Google calendars (that are not included in our libraries of ics or uploaded manually).

### To be defined

From where we get the public calendars and for which regions. Potentially the regions that speak the supported OP languages.

### Figma link

https://www.figma.com/file/SMzHAQWcY9k0PkTEKd5UQn/Duration-and-Non-Working-Days?node-id=1091%3A9491
