Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

api to create issues with multi-select database picker custom field

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"    }}

2 answers

0 votes

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

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.

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.

Same issue here. Have you found a solution for this, @jfei_zhu ?

no. I asked the ScriptRunner support desk. It's a bug.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you