I use scriptrunner to create a multi-select database picker custom field.
Thorught API, I can see the metadata for this filed:
"customfield_14353": {
"required": true,
"schema": {
"type": "any",
"custom": "com.onresolve.jira.groovy.groovyrunner:multiple-database-picker-cf",
"customId": 14353
},
"name": "abc",
"fieldId": "customfield_14353",
"hasDefaultValue": false,
"operations": [
"set"
]
}
And I created one issue manually, I can get the issue's field:
"customfield_14353": [
"xyz",
"abcx"],
It looks like a list of string.
But when I use API to create an issue:
"customfield_14353": [
"xyz",
"abcx"]
It complains
{ "errorMessages": [], "errors": { "customfield_14353": "Operation value must be a string" }}
Thanks, @PD Sheehan . I still can't figure out this issue. I have sent a help request to scriptrunner. I will post their response here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't have direct knowledge of this scenario, but you can try to examine requests in the chrome developer panel when creating your issue from the UI. You might get some clues as to how the payload is formatted for those multi-select database fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, @Peter-Dave_Sheehan . I still can't figure out this issue. I have sent a help request to scriptrunner. I will post their response here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.