# Bug OP-7859 - create new child returns version error (duplicate usage of type for backlogs sprint and task)

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 11.2.0 |
| Observed in versions | 11.0.0 |
| Sprint | 11.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 11.0.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | Yes |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### **Environment**:

OpenProject 11.0.1 (PostgeSQL) Enterprise Edition

Ubuntu 18.04.5  
Chrome 86.0.4240.111  and Firefox 81.0.2  
OpenProject in English

### **Logs**

Some errors show up in console (screenshot attached), nothing in \`openproject logs\`

### **Steps to reproduce:**

1.  **Have a type configured as a "Task" as well as a "Story" for the Backlogs menu**.
2.  Open the relations tab on a work package that has a version set (https://\<openproject instance\>/projects/\<project name\>/work\_packages/\<wp id\>/relations
3.  Under children click "Create new child"
4.  Enter a subject and select the same version as the parent
5.  Press enter on the subject

### **Actual Behavior**

An error shows up "Version must be the same as the parent story's version."

### **Expected Behavior**

1.  Not to have to select a 'version' when the parent I am adding the child to already has a version set. No need to have me select something if I have only one valid choice anyway.
2.  A new work package to be created with a child/parent relating to the work package I was editing.

A work around is to add a completely separate work package, and then add it as an existing child later. But this defeats the purpose of the inline "create new child" option

### **Notes**

The failure IMO is the result of being able to configure a type to be a Story as well as a Task in the context of Backlogs. This should be prevented.
