# Bug OP-18151 - When project is copied, work packages with empty mandatory custom fields are not copied

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Custom fields, Modules and project features / Project settings |
| Target versions | 16.6.1 |
| Observed in versions | 16.6.0 |
| Sprint | 16.6.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.6.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### 

### Steps to reproduce

1.  Login and open a project A with work packages among which is a work package B

2.  Go to administration/Custom fields

3.  Open a non-mandatory custom field used in work package of type B

4.  Make it mandatory

5.  Make sure this custom field appears on the work package form (if not, add it in Project settings/Work packages)

6.  Open the project A/project settings/more menu

7.  Select Copy

### What is the buggy behavior?

  - There is an error about work packages' mandatory custom fields being empty and those are not copied

### What is the expected behavior?

1.  Work packages should be copied

### 

### Environment information

**OpenProject version**

*16.6*
