Create Issue via API returning "Option value is not valid" for Multi Select List custom field

Adam Witek October 17, 2023

I'm trying to create an issue via the Rest v3 API and pulling my hair out.

Customfield _10930 is a Multi Select List.

What am I doing wrong?

 

{
 "fields": {
  "project": {
   "key": "PM"
},
  "summary": "This is a test issue",
  "issuetype": {
   "name": "Task"
},
  "customfield_10930": [
{
   "id": "12533"
}
]
}
}
If I do a "GET" on an  issue, I receive back:
"customfield_10930": [
{
"value": "dog",
"id": "12533"
}

2 answers

1 accepted

0 votes
Answer accepted
Adam Witek October 17, 2023

It turns out I had an "test" Field Context setup and I couldn't see it because my list was so long. By scrolling to the bottom of the list it allowed me to delete the extra context.

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 17, 2023

Hi @Adam Witek 

You api post shoul look like this:

{
"fields": {
  "project": {
"key": "REST"
},
  "summary": "Issue created from REST API",
  "issuetype": {
"id": "1"
},
  "customfield_10300": {
"value": "Mammal",
"child": {
"value": "Elephant"
}
}
  }
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events