A number of custom fields have been created but an error is returned when trying to create a JIRA issue and setting a custom field.
request body:
{ "fields": {
"project": { "key": "UCO" },
"summary": "111 - with custom fields",
"description": "Create issue with team custom field",
"issuetype": { "name": "Bug" },
"customfield_10012" : "Top Gear12" ,
"customfield_10010" : "Top Gear10" }
}Error response:
"Field 'customfield_10012' cannot be set. It is not on the appropriate screen, or unknown."
Searching on this error shows that the field has to be added to the screen - but which screen?
How do I find out what screen to add the custom field to?
I can get field for screens using REST
/rest/api/2/screens/{screenId}/availableFields
but what value of screenId corresponds to which screen?
putting in a value of 1, 2, or 3 returns information but what screen is it for?