Am writing a custom HTML form to create issues in JIRA via the REST API (rest/api/2/issue). One of the fields is a custom JIRA field with multiple options (single select), but I'm unable to create issues when I include that in the JSON. The error I'm receiving is "Could not find valid 'id' or 'value' in the Parent Option object. The JSON I'm supplying looks like:
{
"fields": {
"project": {
"key": "PTP"
},
"customfield_10401": "my project request",
"customfield_11700": "11610",
"summary": "my project request",
"description": "Compliance Program",
"issuetype": {
"name": "Epic"
}
}
}
where "customfield_11700" is the single select custom field. (customfield_10401 is "Epic Name").
The supplied id "11610" is a valid ID (known value) for the custom field - I retrieved it from the createmeta API.
I've tried to create an issue by supplying the 'ID' and the 'value' for the customfield_11700 with no success. I now the customfield_11700 is the offender because if I remove the 11700 field from the JSON, the issue is created successfully.
Any ideas on what I should try?