# Feature OP-6928 - Add scheduling mode to work package in back end (Database, Contracts, API)

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 11.0.0 |
| Sprint | 11.0.0 |
| Backlog bucket |  |
| Votes |  |
| 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 |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

### Acceptance criteria

*   Scheduling mode is persisted in the database
*   Scheduling mode is present in the work package resource
    *   Could be represented by a boolean field or by an enumeration
*   Scheduling mode is present in the work package schema
*   The scheduling mode can be modified via the API
    *   Requires no extra permission. Add/Edit work packages suffices.

### Out of scope

*   Business logic when scheduling and when activating/deactivating manual/automatic scheduling.

### Implementation notes

*   Add a boolean field to the database.
*   Add a boolean field to the work package resource.
*   Describe the field in the work package schema resource.
*   Add the attribute to the contract.
*   Add the attribute to the default values within the SetAttributesService (default: automatic scheduling).
*   If opportunity arrises: Refactor TypedWorkPackageSchema and SpecifcWorkPackageSchema to be simple Contracts just like it is handle for the rest of the resources.
