• 53
    • 16
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Steps to repro:

      1. Create some custom fields and use them in a workflow
      2. Export the workflow from JIRA
      3. Import the same workflow back in

      Expected:

      No new fields should be created since the same type of custom field, with the same name already exists

      Actual:

      A new set of custom fields is created.

          Form Name

            [JRASERVER-37358] Workflow import creates duplicate custom fields

            This is insane we need this fixed.  For Statuses it lets you choose what to map to... Why not do the same for custom fields

            PDT Partners added a comment - This is insane we need this fixed.  For Statuses it lets you choose what to map to... Why not do the same for custom fields

            lssmny added a comment -

            Will this be ever solved? Being able to opt out of re-creating custom fields should be readily available when importing a workflow. 

            lssmny added a comment - Will this be ever solved? Being able to opt out of re-creating custom fields should be readily available when importing a workflow. 

            There's no workaround in the description, but it's possible to edit the export file and replace the relevant field IDs. You don't even need to access the database or use APIs, they can be checked in the Custom fields section of the (sys)admin panel by hovering over blue links or actions.

            Piotr Janik added a comment - There's no workaround in the description, but it's possible to edit the export file and replace the relevant field IDs. You don't even need to access the database or use APIs, they can be checked in the Custom fields section of the (sys)admin panel by hovering over blue links or actions.

            10 years since this was raised. This seriously hampers developing changes in another environment. Duplicate fields are the last thing you want. Why is it so hard to migrate project between Jira instances. The UI tooling is minimal, REST APIs are incomplete and then when there is a feature like this it turns out to be dangerous to use. 

            Barney Dalton added a comment - 10 years since this was raised. This seriously hampers developing changes in another environment. Duplicate fields are the last thing you want. Why is it so hard to migrate project between Jira instances. The UI tooling is minimal, REST APIs are incomplete and then when there is a feature like this it turns out to be dangerous to use. 

            I cannot overstate the amount of HOURS spent correcting custom fields after import, please save me 

            Megan Moulton added a comment - I cannot overstate the amount of HOURS spent correcting custom fields after import, please save me 

            Klara Zikesova added a comment - - edited

            +1 it hurts a lot, really. Created quite complicated wf on testing environment and after long testing and mending and all cannot import it to prod due to this error and will have to to recreate it from scratch manually... fields that Jira is trying to recreate exist with the same type, name and ID! doublechecked it. So really really bad.

            Klara Zikesova added a comment - - edited +1 it hurts a lot, really. Created quite complicated wf on testing environment and after long testing and mending and all cannot import it to prod due to this error and will have to to recreate it from scratch manually... fields that Jira is trying to recreate exist with the same type, name and ID! doublechecked it. So really really bad.

            I've observed when importing a workflow from another instance, if name, id and context are not an exact match, Jira creates a new field. This makes sence because Jira cannot make assumptions based just on field name. The example above is using newly created fields, exporting and importing into the same instance, so I think in that case a re-index after creating the fields may fix that. I haven't tested that.

            However, and this is what the real problem is, when Jira creates new fields on workflow import, existing filters using the existing custom fields, switch over to the new fields and it breaks the filters. This behavour is the super buggy part.

            It would be nice to have a field mapping screen on workflow import based on field names and the user could set mapping, even if id or context wasn't a match.

            Melisa L Smith added a comment - I've observed when importing a workflow from another instance, if name, id and context are not an exact match, Jira creates a new field. This makes sence because Jira cannot make assumptions based just on field name. The example above is using newly created fields, exporting and importing into the same instance, so I think in that case a re-index after creating the fields may fix that. I haven't tested that. However, and this is what the real problem is, when Jira creates new fields on workflow import, existing filters using the existing custom fields, switch over to the new fields and it breaks the filters. This behavour is the super buggy part. It would be nice to have a field mapping screen on workflow import based on field names and the user could set mapping, even if id or context wasn't a match.

            Van Pierce added a comment -

            +1

            Van Pierce added a comment - +1

            Same problem here. It's difficult to clean up. Please fix this. 

            Victoria Lynn Hardy added a comment - Same problem here. It's difficult to clean up. Please fix this. 

            Brent Nye added a comment -

            +1

            Brent Nye added a comment - +1

              Unassigned Unassigned
              bberenberg Boris Berenberg (Inactive)
              Votes:
              240 Vote for this issue
              Watchers:
              162 Start watching this issue

                Created:
                Updated: