Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-28501

Deleting a custom field option that is used as default to a cascading select CF will make that custom field uneditable

    XMLWordPrintable

Details

    Description

      1. Create a new Cascading Select Custom Field.
      2. Add an option to the field.
      3. Make this option the default.
      4. (BUG) Delete the option from the field. The option will be deleted and you will end up with:
      com.atlassian.jira.issue.customfields.impl.FieldValidationException: '10120' is an invalid Option
      	at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getOptionFromStringValue(CascadingSelectCFType.java:484)
      	at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.extractOptionFromParams(CascadingSelectCFType.java:464)
      	at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getOptionMapFromCustomFieldParams(CascadingSelectCFType.java:442)
      	at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getDefaultValue(CascadingSelectCFType.java:357)
      	at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getDefaultValue(CascadingSelectCFType.java:69)
      	at com.atlassian.jira.web.action.admin.customfields.EditCustomFieldDefaults.populateDefaults(EditCustomFieldDefaults.java:58)
      	at com.atlassian.jira.web.action.admin.customfields.EditCustomFieldOptions.doDefault(EditCustomFieldOptions.java:72)
      	at sun.reflect.GeneratedMethodAccessor583.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
      	at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
      	at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:157)
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82)
      	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)
      	at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)
      	at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
      	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)
      	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:205)
      	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:143)
      	at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:151)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      

      From this point you can't edit the options for this field. I am not sure if this happens to other Custom Field Types.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bbain bain
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: