# Bug SPAR-122 - Required custom fields prevent a WorkPackage from being added as a child

Project: Stream Planning and Reporting
Status: closed
URL: https://community.openproject.org/work_packages/SPAR-122

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.5.0 |
| Observed in versions | 15.1.0 |
| Bug found in version (deprecated) | 15.1.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Attila Dombi |
| 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.  Have two WorkPackages of the same type

2.  Add a required custom field for this type

3.  Go to any of the WorkPackages and try to add the the other as a child via the relations tab

### What is the buggy behavior?

  - Nothing happens, no error message, no children created

  - When trying to do the same via an embedded table, there is at least an error message shown saying the required field can't be blank

### What is the expected behavior?

  - ~~An error message should be shown~~

  - No error message should be shown, and the relation needs to be created.

### 

### Environment information

**OpenProject version**

*15.1*

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [x] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

*German*
