I continue to get back errors from the REST API using httpClient. Two, in fact.
The first is I get "httpRequest userId is deprecated: please use the userKey attribute" whenever I make a PUT request using the client. (More of a warning really, but I'm not sure why)
The second is a straight error while trying to simply update a JIRA issue's single field in a PUT. Code below:
var httpClient = addon.httpClient(req);
httpClient.put({
"url": '/rest/api/2/issue/' + body.issue.key,
"headers": {
'Content-Type': 'application/json',
'Accept' : 'application/json'
},
body : JSON.stringify({fields:{reporter: {name:"kenny-test\
u0040example.com"}}})
}, function (err, message, res){
console.log(res);
});
The error is "errors":{"reporter":"Field 'reporter' cannot be set. It is not on the appropriate screen, or unknown."}}
Note that reporter is indeed a field on the issue and can be set using a REST call through, say, Postman in Chrome. (See below)
