Hi Atlassian Community,
I need to change/convert an existing custom field type from "Text Field (Single Line)" to "Text Field (multi-line)" as mentioned in the documentation How to change custom field types in Jira
UPDATE customfieldvalue SET textvalue=stringvalue WHERE customfield=(SELECT ID FROM customfield WHERE
customfieldtypekey='com.atlassian.jira.plugin.system.customfieldtypes:textfield' AND cfname='Text Field');
UPDATE customfield SET CUSTOMFIELDTYPEKEY='com.atlassian.jira.plugin.system.customfieldtypes:textarea', CUSTOMFIELDSEARCHERKEY='com.atlassian.jira.plugin.system.customfieldtypes:textsearcher'
where cfname='Text Field';
I am not really sure if this is related to the "Text Field" type so I am thinking if it's safe to just create another custom field type that uses the same name of that custom field? will it affect the current field after the new field is created?
After that, I will bulk edit to transfer the current values to the new field.
Thank you.
Hi @Gian Israel Nampi ,
As stated in the KB, atlassian incentivises against changes in the database.
You should indeed create a new custom field with the same name. After the data transfer, remember to update your screens / filters / dashboards to display the new field instead of the old one.
Thank you for your response, so I created the custom field with the same name and migrate the existing values to the new one using Adaptavist Script Runner - Built-in Scripts.
Thank You!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.