Forums

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

Getting this error

Choubey, Abhishek January 9, 2022

Error:-"customfield_10007": "Specify a valid value for 'Change reason'. The allowed values are 10011[Repair], 10012[Upgrade], 10013[Maintenance], 10014[New functionality], 10015[Other], -1"

 

JSON:-

{
"fields":{
"summary":"None",
"issuetype":{
"id":"10000"
},
"project":{
"key":"CI"
},
"customfield_10007": {
"id":"10007",
"Change reason":"Maintenance"

},
"customfield_10008":"2015-11-10",
"customfield_10009":"2019-11-10",

"customfield_10011":"CI-1",
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "description"
}
]
}
]
}
}
}

1 answer

1 accepted

1 vote
Answer accepted
Alex Koxaras -Relational-
Community Champion
January 10, 2022

Hi @Choubey, Abhishek 

Try the following:

"customfield_10007": {
"value": "Maintenance"
}

 

Choubey, Abhishek January 11, 2022
sarvesh.bajaj November 8, 2023

Hi @Alex Koxaras -Relational- , one doubt here, 
For custom fields we need to put "value," but for resolution (or default fields), we need to put "name" in key, any reason? what is the differentiator here?

examples : 

 

 

{
"transition": {
"id": "31"
},
"fields": {
"resolution": {
"name": "Done"
}
}
}


{
"transition": {
"id": "41"
},
"fields": {
"customfield_10007": {
"value": "Maintenance"
}
}
}

Suggest an answer

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

Atlassian Community Events