Hi, I can I'm running testEdit() in the Apps Script debugger. I get a 200 http response and response content that fully details the issue I'm querying. (I know this by examining the jsonContent object in the debugger.)
However, I can't get the summary field (or any other field) to actually update.
Any help would be greatly appreciated! Thanks in advance.
===================
function testEdit(){
let headers = {
"content-type": "application/json",
"Accept": "application/json",
"Authorization": "Basic Y2hhc2XXXXX....XXX”
};
// A final few options to complete the JSON string
let data =
{
"fields" : {
//"customfield_10110" :
"summary":
{"value" : "foo"}
}
};
var payload = JSON.stringify(data);
var options = {
"content-type": "application/json",
"method": "POST",
"headers": headers,
"payload": payload,
"muteHttpExceptions":false
};
var response = UrlFetchApp.fetch("http://whisper.atlassian.net/rest/api/2/issue/IMG-1625", options);
let responseContent = response.getContentText();
let jsonContent = JSON.parse(responseContent);
Logger.log(jsonContent.key);
}