Hi, I'm JIRA plugin developer.
I want to set multi-user-select customfield by java code.
so, i try.
My source:
String strUserList = "admin, leejimin1006" // sample JIRA ID MutableIssue issue = issueResult.getIssue(); issue.setCustomFieldValue(customField, strUserList);
But, I unsolved still..
help me, please.
multi-user-select customfield:
Community moderators have prevented the ability to post new answers.
The custom field value is expecting a list of things you want to set, not a string.
Well, to be more precise, the function is expecting an object. For text fields, that object would be a string, for a select list, it should be an option object, and for multi-selects where you want to set more than one value, it should be a list of options. Additionally, although I'm not 100% sure of this, I think a multi-user-select field would expect a list of user objects, rather than objects.
Hi I resolved.
When Create Issue:
CustomField customField;
MutableIssue issue;
ArrayList<String> userList; // sample IDs
customField.createValue(issue, userList);
When Update Issue:
CustomField customField;
MutableIssue issue;
ArrayList<String> userList; // sample IDs
issue.setCustomFieldValue(customField, userList);
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm using JIRA 6.0
Looks like store() method does not work for custom fields. What's the alternative approach?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.