We're trying to use the JIRA REST API to create issues on a project. Below is the command and JSON we're using. Keep getting a 400 error saying:
{"errorMessages":[],"errors":{"Environment(s) Affected":"Field 'Environment(s) Affected' cannot be set. It is not on the appropriate screen, or unknown."}}Any suggestions how we can get the command to run successfully? The Environment(s) Affected field is a multi-selection field.
curl -i -D- -u 'user:pass' -X POST -d @./create_issue.json -H "Content-Type: application/json" https://jira.example.com/rest/api/2/issue/
$ cat create_issue.json
{
"fields": {
"project":
{
"key": "TEST"
},
"summary": "TEST Issue Creation",
"description": "Testing JIRA integration. Ticket can be closed.",
"Environment(s) Affected": "None",
"issuetype": {
"name": "Incident"
}
}
}
