# Bug OP-3979 - Custom values might get deleted when changing type/project

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | Product Backlog |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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 |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

**Preconditions**

*   2 projects exist (A and B)
    *   Work package module activated in both projects (A and B).
    *   Custom fields are activated in project A but not in project B.
    *   Work package of type that is active in both projects exist.
    *   Work package has custom field with custom value assigned in project A.

**Steps to reproduce**

1.  Go to project A.
2.  Move work package (which has custom values assigned) from project A to project B.
3.  Activate custom fields in project B.

**Actual behavior**

*   There is no notification (e.g. listed in the activity) that values / data are being lost when moving the work package from project A to project B.
*   After activating the custom fields in project B, the the custom values are not shown.
*   (Even when moving work package back to project A, the custom values are not shown.)

**Expected behavior**

*   Custom values are not deleted when moving a work package from one project to another.
*   When activating the custom fields in project B the custom values that have been set in project A should be shown on the work package.

**Screenshot**  
  

![](Bug_MoveWPCustomFields.gif)

**QA system**

*   qa.openproject-edge.com
*   OpenProject 7.2
*   Chrome
