Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an issue with a custom field (single select), every time I get a specific wrong option

noa.cohen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 15, 2022

Hello,

I'm creating an issue through a Java application,
I created a new single select custom field with 2 options.

The issue creates successfully, but every time and for only this specific custom field it's created with the same option, even when I'm not creating the issue with that option.

for example:

I have the custom field:

{ id: "customfield_11111", value: "Animal" }

the field has the options: 

{ id: "22222", value: "Dog" }
{ id: "33333", value: "Cat" }


The field does not have a default value.

when I'm trying to create an issue with Animal field, with the option Dog, it always created with the option Cat

 


The body I send on the request:

"fields": {
"project":{
"id":"10900"
},
"summary":"some summary",
"assignee":{
"id":"12345"
},
"issuetype":{
"id":"77777"
},
"parent":{
"key":"ISU-11111"
},
"description":"some description",
"customfield_11111":{
"id":"22222",
"value":"Dog"
}
}


Any suggestions?

1 answer

1 vote
Gülçin Nacak March 15, 2022

Hi @noa.cohen ,

 

Did you check customfield’s default value ? If customfield’s default value is empty , can you send issue’s history ss ? 

noa.cohen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 16, 2022

@Gülçin Nacak Thanks for your answer.
Can you be specific - what is history ss?

Like # people like this

Suggest an answer

Log in or Sign up to answer