I am trying to update the status of the bug using api node js but it is not getting updated.
var bodyData =
{ "update":
{ "summary": [ { "set": "Issue Updated" },],
"status": [{ "statusCategory": { "name": "DONE" } }]
}}
try {
var options = {
url: url
method: "PUT", json: true,
headers: { 'Authorization': 'Basic ' + new Buffer(username + ':' + password).toString("base64"), 'X-Atlassian-Token': 'nocheck',
'Content-Type': 'application/json' }, body: bodyData };
request(options, async function (error, response, body) { if (error) { console.log(error); //return response.statusCode; } else { console.log(body); } });
} catch (e) { console.log(e);}