How to transfer value of one custom field to another custom field in the jira project?

Arshina Masud November 23, 2022

I want to transfer the data of one custom field to another custom field without losing any data. 

2 answers

1 accepted

0 votes
Answer accepted
Karim ABO HASHISH
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 23, 2022

hi @Arshina Masud 

If you don't have script runner plugin you may try the below solution.

  1. Edit your workflow and add a self-transition 

    Self-Transition-Copy-Data.png

  2. Add a post-function "Copy value from other field" to the self-transition

    Copy-value-from-other-field.png

  3. Choose your source field and destination field, update and publish the workflow

    sourcefield-destination-field.png


  4.  Test the self-transition on one ticket manually to validate the solution

    Copy-data-transition.png

  5. The result should be

    copy-data-resutls.png


  6. Now you can construct your JQL and perform bulk action to transition all the tickets using the self-transition (This will not change the current status of any ticket)

    Bulk-transition.png

Pro-Tip Please pay attention that this solution will change the updated date of the ticket, so if you are relying on the updated date in your filters, it will affect those filters' results.

Good Luck and let us know how it went for you

Cheers,

Karim

0 votes
Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
November 24, 2022

Hi @Arshina Masud

if you're open to solutions from the Atlassian Marketplace, this would be super easy with the app that my team is working on, JXL for Jira.

JXL is a full-fledged spreadsheet/table view that allows viewing, inline-editing, sorting and filtering by all your issue fields. You can also edit fields in bulk, using copy/paste. 

To solve your use case, you'd simply create a new JXL sheet with your issues, add your old and new custom field as table columns, and copy/paste the values over. This is how this looks in action:

bulk-copy-paste.gif

You can update any number of issues in one action, so you should be done with your changes in no time.

Any questions just let me know,

Best,

Hannes

Arshina Masud March 30, 2023

thank you

Suggest an answer

Log in or Sign up to answer