CustomField customField = customFieldManager.getCustomFieldObjectByName( "name_of_cf" ); IssueChangeHolder changeHolder = new DefaultIssueChangeHolder(); //Update the custom field value customField.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(customField), newValue),changeHolder);
I am not sure but multiselect customfield values are in the form of List so in the above code the newValue will be a List or array example :[1,3,4] will set the value of the mulitiselect list to first third and fourth values.
OptionsManager optionsManager = ComponentManager.getComponentInstanceOfType(OptionsManager.class)
If you were abel to find the solution and if possible would please share it ?
I am also trying to figure out same problem. I have opened ticket here: https://answers.atlassian.com/questions/47240/how-to-set-multi-select-custom-field-value-from-a-soap-client-application
Exactly, Jamie is wright. My solution is valid if you are using Jira Java API, but you are asking for SOAP client application.
Anyway, by using
customField.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(customField), newValue),changeHolder);
where "new value" is a Collection of Option objects yo can set the value of the multi-select.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG