# Bug OP-17131 - Creation of sub-items in hierarchy custom field not possible (error 500)

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Custom fields |
| Target versions | 16.0.1 |
| Observed in versions | 15.5.0 |
| Sprint | 16.0.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.5.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 | Marcello Rocha Pereira |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

<br>

1.  Login as an adminstrator
    
2.  Navigate to _custom fields_
    
3.  Create a new custom field type = hierarchy, use any settings
    
4.  Create a new list item (level 1) and save your changed
    
5.  Try to add a new sub-item to the item your just created
    

### What is the buggy behavior?

<br>

*   You will receive an error 500
    

### What is the expected behavior?

<br>

1.  It is possible to add sub-items
    

### **Logs**

Tested in cloud version without access to logs. However, there are customer logs available within this support ticket:  
https://helpdesk.openproject.org/mail/view?model=helpdesk.ticket&amp;res\_id=27000

### Screenshots and other files

<br>

See _hierarchy-500.mp4_

### Environment information

<br>

**OpenProject installation type**

*   Hosted cloud edition (But also reported from on-prem customer)
    

**OpenProject version**

_15.5.1_

**Browser**

*   [ ] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [x] Other (Vivaldi)

**Operating System**

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

**Language**

_DE/EN tested_
