# Bug JIM-263 - Jira migrator creates a new numbered custom field on every import run instead of reusing the one it created before

Project: Stream Jira to OpenProject data Migrator
Status: closed
URL: https://community.openproject.org/work_packages/JIM-263

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Integrations / Jira |
| Target versions | 18.0.0 |
| Observed in versions |  |
| Sprint | Sprint 18.11.-24.11.2026 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Log in as an administrator of an OpenProject instance that already has a work package custom field named `Story Points` of format &quot;Integer&quot;
    
2.  Run an import of a Jira project whose issues carry values for the Jira field `Story Points`
    
3.  Check Administration -&gt; Custom fields: a new field `Story Points (2)` has appeared.
    
4.  Run a second import with `Story Points` from the same Jira instance
    
5.  Check Administration -&gt; Custom fields again.
    

### What is the buggy behavior?

*   Step 5 creates `Story Points (3)` rather than reusing `Story Points (2)`, which the migrator itself created in step 3.&nbsp;
    
*   The counter keeps climbing by one on every further import run: `(4)`, `(5)`, and so on. Each run also leaves its work packages pointing at a different custom field, so the Story Points of issues imported in run 1 and run 2 end up in two unrelated columns.
    

### What is the expected behavior?

1.  A second import run reuses the custom field an earlier run created for the same Jira field, so that work packages from all runs share one column.
    
2.  Where reuse is genuinely impossible (an existing field of an incompatible format), the suffixed field is created once and then reused by every later run.
    

### Environment information

**OpenProject installation type**

*   [x] All

**OpenProject version**

v17.9.x

**Operating System**

*   [x] All

**Language**

*   [x] All
