I can't change custom field type

Hi, I am using Jira 3.5, and I need to change some custom fields' type.

Here's what I did to test the procedure:

1. Create a new radio buttons custom field

2. Stop Jira

3. Execute:

UPDATE CUSTOMFIELD
    SET CUSTOMFIELDTYPEKEY='com.atlassian.jira.plugin.system.customfieldtypes:multiselect',
    CUSTOMFIELDSEARCHERKEY='com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher'
WHERE ID=10570

4. Start Jira

5. Re-index

But in Jira, the type of the custom field is still radio buttons. Moreover, after doing that, it's impossible to delete the custom field (the webpage never finishes to load).

Please could anybody tell me what did I do wrong?

2 answers

1 accepted

Accepted Answer
0 votes

Ok I got it, it's because I didn't commit after the database update :)

thanks, but I used the same procedure and it doesn't work...

1
2
3
4
UPDATE CUSTOMFIELD
SET CUSTOMFIELDTYPEKEY='com.atlassian.jira.plugin.system.customfieldtypes:multiselect',
CUSTOMFIELDSEARCHERKEY='com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher'
WHERE ID=10570
is that you tried select also in place of multiselect?
UPDATE customfield SET CUSTOMFIELDTYPEKEY = 'com.atlassian.jira.plugin.system.customfieldtypes:select',
UPDATE CUSTOMFIELD
SET CUSTOMFIELDTYPEKEY='com.atlassian.jira.plugin.system.customfieldtypes:multiselect',
CUSTOMFIELDSEARCHERKEY='com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher'
WHERE ID=10570
is that you tried select also in place of multiselect?
UPDATE customfield SET CUSTOMFIELDTYPEKEY = 'com.atlassian.jira.plugin.system.customfieldtypes:select',
The above comment is appearing with improper readability.so I again posted

Yes I tried it.

But I have just noticed something important: when I re-index Jira, the custom field type is set back to radio button in the database.

Do you have any idea how this could happen?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,201 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you