Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-19937

Changing custom field types

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Fix
    • Documentation
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Hi,

      From the following documentation:
      http://confluence.atlassian.com/display/JIRA03x/Changing+Custom+Field+Types

      When moving back from a multi select list a select list, you have to make sure that only one item is selected for each multi select list.

      I think you should change this sentence above to:

      When moving back from Multi Select List to a Select List, you have to remove the default value of the Multi Select. In addition to that, please make sure that no issue that has multiple Multi Select List values. Otherwise, the issue will have no Select List value after conversion. The following error will occured during issue creation if the Multi Select List has default value before conversion:

      ...
      java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
      at com.atlassian.jira.issue.customfields.impl.StringCFType.getObjectFromDbValue(StringCFType.java:25)
      ...
      

      The solution for this error is to delete the default value of the Multi Select List by hacking the database directly:

      delete from genericconfiguration where ID=<value_of_your_multi_select_default_value>;
      

      If you are not sure which ID, you could do a select query and look for the XMLVALUE column where you can spot the default value:

      select * from genericconfiguration;
      

      Restart your JIRA for the changes to take effect.

      Do not hesitate to let me know if you need more description.

      Cheers,
      Janet

      Attachments

        Issue Links

          Activity

            People

              alui Andrew
              jalbion Janet Albion (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: