I am getting an error for "environment" field while submitting the request with following JSON. Environment is not a custom field and id in the api is also "environment'. Anybody can tell me what is wrong here:
{
"fields": {
"project":
{
"key": "projectkey"
},
"summary": "[entry.summary.escapeJSON]",
"description": "[entry.description.escapeJSON]",
"environment": "[entry.environment.escapeJSON]",
"issuetype": {
"name": "Incident"
}
}
}
error message:- com.atlassian.sal.api.net.ResponseException: Error communicating with Jira, {"errorMessages":[],"errors":{"environment":"Field 'environment' cannot be set. It is not on the appropriate screen, or unknown."}} Used JSON: '{ "fields": { "project": { "key": "projectkey" }, "summary": "gf", "description": "trt", "environment": "yryr", "issuetype": { "name": "Incident" } } }' Request to url = url