We have a SelectCFType that I am trying to populate when an issue is created. In previous versions of JIRA, I would use:
typeField.getCustomFieldType().updateValue(typeField, issue, "value");
To update the field and this worked great for our plain text fields and this select drop down box. In 4.4, if I use the same method above, the field does not save the value and the below error is produced in the logs:
2011-09-07 20:25:38,831 http-80-1 WARN UserName 1225x34x1 c0jmsb 146.7.22.237 /secure/CreateIssueDetails.jspa [issue.customfields.impl.SelectCFType] of type class java.lang.String
I have tried passing the option id and a List of the string, but these do not work either and produce the same error as above. How should I be updating the value for this select field?
Community moderators have prevented the ability to post new answers.
It should be an Option object.
Thank you Jobin! It appears that 4.4 requires that it be an Option object.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yup, more info at http://confluence.atlassian.com/display/JIRA/Plugin+Developer+Notes+for+JIRA+4.4#PluginDeveloperNotesforJIRA44-Single-andMulti-Sele
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.