# Feature OP-16229 - Prevent making entities invalid when adding required properties

Project: OpenProject
Status: rejected
URL: https://community.openproject.org/work_packages/OP-16229

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| 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 | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

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

## Estimates and progress

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

## Description

**As** a project admin  
**I want to** have a way of adding required work package custom fields to my project safely  
**so that** not all of the work packages of the related type turn invalid.

**Acceptance criteria**

*   If a required custom field is enabled on a project, ....
    
*   If a required project attribute is enabled for any number of projects, ....
    

**Trivia**

*   Enabling a required custom field currently breaks any number of work packages silently.
    
    *   we could go different roads here:
        
        *   add a danger zone (communication only and let the user fix the mess)
            
        *   add a forced default value selection (project admin will select a value that gets assigned to ALL work packages which would be invalid after activating the custom field)
            
        *   ... more ideas?
            
*   The same problem exists for project attributes, as I can enable a required attribute for multiple projects at once (even for ALL projects with a single checkbox)
