Hello
I have introduced a custom field from an add-on I no longer expect to use, but this custom field has already been added in screens and also in many ServiceDesk request types.
I would like to "switch in-place" this custom field to a standard custom field (Text single-line) so that its identifier ID remains the same to avoid to rework all screens and request types.
I expect it should be possible with Script Runner, live in JIRA without restart, as far as a re-index is triggered after operation I guess. (you understand I am not interested in known KB referring to SQL updates and JIRA restart)
May you please help to design a script to operate such a custom field type switch?
Thank you in advance
Jira itself cannot change the custom field type, so there's no API for Script Runner to call to in order to change it.I would add the new field, then
I'd say that your best bet is to create a new customfield, copy all values from the old field to the new and then go through all the schemes, screens and such, adding the new field (and removing the old) as needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I thought about it but it is error prone. And scripting with JIRA CLI may be longer to design, with doubt ServiceDesk request type fields are handled...
I am simply curious to know if script runner is able to do it...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Scriptrunner can at least help with copying everything from one CustomField to another.
Addons -> Scriptrunner -> Built-in Scripts -> Copy custom field values
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. It is a really useful feature !
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.