Hi,
In Jira we have some page which have values like this:
customfield_12345 and customfield_12345:1.
The customfields with numbers are okay, I've checked in the browser with console.
Few lines below is json which I use for curl. But when I use it I got following error:
{"errorMessage":"Unable to to create request because of theses errors : The field 'customfield_12650:1' is not valid for this request type 'Incident'.","i18nErrorMessage":{"i18nKey":"sd.request.create.error.failed.msg","parameters":["The field 'customfield_12650:1' is not valid for this request type 'Incident'."]}}How should I format json message to get it working?
MESSAGE='{
"serviceDeskId":"1",
"requestTypeId":"12",
"requestFieldValues":{
"summary":"Heya",
"customfield_13225":"'bang bang'",
"customfield_13917":{
"value":"'$TESTENVIRONMENTVALUE'",
"id":"'$TESTENVIRONMENTID'"
},
"customfield_18611":{
"value":"'$SITEVALUE'",
"id":"'$SITEID'"
},
"description":"Hello",
"customfield_13680":{
"value":"Hey",
"id":"161239"
},
"customfield_12650":{
"value":"'$ORGANIZATIONVALUE'",
"id":"'$ORGANIZATIONID'"
},
"customfield_12650:1":{
"value":"'$ORIGINVALUE'",
"id":"'$ORIGINID'"
},
"customfield_14418":{
"value":"Poland (GMT/UTC + 01:00 hour)",
"id":"16053"
},
"customfield_12314":[
{
"value":"Not flow related",
"id":"55564"
}
],
"priority":{
"name":"1",
"id":"4"
}
}
}'
Thanks!