Forums

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

Copy the field values from text field to numeric field type

Lakshmi CH
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.
September 7, 2023

Hi Team,

 We have requirement to change the field type from a single-line text field to a number field. I created a new field with the same name and set it to numeric, then tried using a built-in script (copy field values, scriptrunner) to transfer the values from the old field to the new one. Unfortunately, the script did not work, and I could not copy the values from the text field to the numeric field. Is there any alternative method to achieve this?

 

1 answer

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
September 7, 2023

Hi @Lakshmi CH

After going through your description, I suggest temporarily renaming the Number Field and transferring the value from the old field to the new field and using the built-in script once again.

If the transfer is successful, once you have transferred the values to the Number Field, either remove or rename the old field and the Number Field.

I hope this helps to answer your question. :-)

Thank you and Kind regards,

Ram

Suggest an answer

Log in or Sign up to answer