Hello All,
One of the scripts to create issues using REST API is giving the return code 400, with the following message:
Truncated server response: {"errorMessages":[],"errors":{"reporter":"Field 'reporter' cannot be set. It is not on the appropriate screen, or unknown."}} (use muteHttpExceptions option to examine full response)
This is after the script defines the reporter and the user credentials used to execute the script have the relevant permissions on the project. This screen scheme has also been validated, and the create screen has the 'Reporter' field.
Code segment is as below:
var data = {
"fields": {
"project": {
"key": "ABC"
},
"issuetype": {
"name": "Story"
},
"reporter": {
"accountId":"622724d2302c6b006af51ec4"
},
"summary": summary,
"description": {
"type": "doc",
"version":1,
"content":[
{
"type": "paragraph",
"content": [
{
"text": description,
"type": "text"
}
]
}
]
}
}
};
The Atlassian documentation available here, mentions setting the reporter differently. This has also been tried but still gets the same error.
Has some on seen this behaviour previously?
Looking forward to hearing from community experts on how to resolve this.
Thanks
Gaurav