Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to merge two custom fields

Consulente Atlassian
Contributor
October 16, 2021

As you can see from the picture, I have two custom fields that are practically the same thing, one is mapped to one project and the other to another project. I would like to know if there is a way to merge two custom fields into one and remove the duplicate.

 

Schermata 2021-10-14 alle 20.52.46.png

4 answers

1 accepted

5 votes
Answer accepted
Paul O
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 17, 2021

If you have admin permissions, you could consider exporting the issues that need to be merged into a CSV, merging in Excel and re-importing using JIRA Settings > System > External System Import.

See: https://community.atlassian.com/t5/Jira-questions/Whether-Jira-supports-updating-existing-issues-using-CSV-import/qaq-p/1008434 for a full explanation

I'd recommend testing the update carefully (either in a dev environment or with a batch size of 1) before applying it to a large number of issues

5 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 16, 2021

There is no automatic way to do it, you have to do it manually in plain Jira.

  1. Select which field you want to keep and which one is to go - from your screenshot, lets say we're going to keep "Account" (as it is a global field, it's going to be less work to keep that and merge the other one in), and lose "permesso"
  2. Make sure "Account" is on the edit screen for the project "permesso" is in
  3. Run a search for "permesso is not empty", and include both fields in the report.
  4. You now need to edit each issue, copying the date from permesso into Account
  5. Now you can delete permesso

If you have batches of the same dates, you can use bulk-edit to do this, but I suspect with date fields, you will have loads of different ones.

There are apps that can help you or even do the whole "merge" for you - scriptrunner can easily support scripts to copy data across fields, there are some housekeeping  apps that can do merges, and even the tools for migrating between systems can do it

3 votes
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 16, 2021

Hi @Consulente Atlassian

If you just want to do it once, get a free trial of the configuration manager from botron and there is a feature to merge customfields. Once you are done, you can uninstall it.

Link: https://marketplace.atlassian.com/apps/1211611/configuration-manager-for-jira?tab=overview&hosting=datacenter

1 vote
Oleg Pechkovskiy February 6, 2023

ScriptRunner built-in script allows to copy values from field to field within JQL scope, this can be helpful for merging fields.

https://docs.adaptavist.com/sr4js/6.31.0/features/built-in-scripts/copy-field-values 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.12.1
TAGS
AUG Leaders

Atlassian Community Events