{
"fields":{
"project":{
"id":"10011"
},
"summary":"Another Test Story.",
"customfield_10057":{
"value":"Technical"
},
"customfield_10006":"CB2323",
"customfield_10053":"this must be done before closing of ticket",
"customfield_10146": [
{
"items": [
{
"text": "rabbitmq-1",
"checked": false
},
{
"text": "rabbitmq-2",
"checked": false
}
]
}
],
"description":"Creating of a story with the API",
"issuetype":{
"name":"Story"
}
}
}
I am getting this error. It works fine when I remove customfield_10146. Don't know what I am doing wrong here.
{"errorMessages":[],"errors":{"customfield_10146":"Field 'customfield_10146' cannot be set. It is not on the appropriate screen, or unknown."}}
Hello @rohit.maheshwari ,
The YAML in the checklist custom field suggests that you are using Issue Checklist Pro or Issue Checklist Free.
I can confirm the solution you found, i.e. the custom field value must be enclosed with double-quotes.
More examples and explanation can be found in the documentation: https://gebsun-support.atlassian.net/wiki/spaces/IC/pages/791806047/Change+checklist+via+REST+API
Let us know if you have more questions.
Cheers,
Jack
worked for me now. I had to do something like this.
{
"fields":{
"project":{
"id":"10011"
},
"summary":"Another Test Story.",
"customfield_10057":{
"value":"Technical"
},
"customfield_10006":"CB2323",
"customfield_10053":"this must be done before closing of ticket",
"customfield_10146":"items:\n - text: test-1\n checked: false\n - text: test-2\n checked: false\n",
"description":"Creating of a story with the API",
"issuetype":{
"name":"Story"
}
}
}
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.
Have you checked if your custom field is visible on 'Issue Create Screen'?
If not, make it visible there for Project 10011 and Issue Type 'Story'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your quick response.
Yes, I can see the custom field on the issue create screen like this.
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.