# Bug OP-18314 - Error duplicating task with relation

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Work packages, Modules and project features / Relations and scheduling |
| Target versions | 17.1.0 |
| Observed in versions | 16.6.0 |
| Sprint | 17.1.0 |
| 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 | Christophe Bliard |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

1.  link two tasks using &quot;**Child&quot;**
    
2.  From the parent work package, Open the three dots menu in the top right corner and select &quot;Duplicate&quot;
    
3.  In the work package create page, click &quot;Save&quot; button at the bottom
    

**Actual result:**

The work package create page is still displayed with the error: &quot;_Manual scheduling cannot be set to false (automatically scheduled) as it has no predecessors or children._&quot;

[21..11\_2025-11-21\_15.1.mp4](https://community.openproject.org/attachments/870533/21..11_2025-11-21_15.1.mp4)

**Expected result**

The work package is duplicated and automatically goes to manual scheduling as it has no children. (The child relations are not duplicated)

**Notes**

When choosing &quot;Duplicate in another project&quot; (from three dots menu) or &quot;Bulk copy&quot; (from work packages list), the problem does not occur because the children are copied too.

The problem also occurs if the work package has predecessors: the relations are not copied when duplicating a work package and so the same error is displayed. They are copied only with &quot;Duplicate in another project&quot; or &quot;Bulk copy&quot;

**Version**

OpenProject 16.6.4

**Browser**

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

**Operating System**

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