The 11303 Patch Broken a Custom Trigger/Script I have that automatically sets the Status of a Ticket to "in-Progress" upon Requester Reply.
This is now broken as well - screen attach and script below. Can anyone help me solve this?
So far the 11303 patch caused more issues than not!!!!!!
configuration = global_function_4();
instanceJson = context.get("instance");
helpdeskID = instanceJson.get("id");
workorderid = requestObj.get("id");
input_data = {
"request": {
"status": {
"name": "In-Progress"
}
}
};
response = invokeurl
[
url: configuration.get("url") + "/api/v3/requests/"+workorderid
type: PUT
headers: {"authtoken":configuration.get("technicianKey"),"PORTALID":helpdeskID}
parameters: {"input_data":input_data}
];
returnObj = Collection();
if(response.get("response_status").get("status_code") == 2000) {
returnObj.insert("result":"Success","message":"Status Updated!");
}
else{
returnObj.insert("result":"failure","message":response);
}
return returnObj;