projectsDomainURL = "
https://projects.zoho.com/";
portalId = "xxxxxxxxxx";
// portal Id correction done.
projectId = "xxxxxxxxxxxxxxxxxxx";
authToken = "xxxxxxxxxxxxxxxxxxxxxxx";
dateFieldParamName = "NDATE7";
currentDate = zoho.currenttime.toString("MM-dd-yyyy","GMT");
info currentDate;
updateBugURL = projectsDomainURL + "/restapi/portal/" + portalId + "/projects/" + projectId + "/bugs/" + currentIssueId + "/";
updateBugParams = Map();
updateBugParams.put(dateFieldParamName,currentDate);
updateBugParams.put("authtoken",authToken);
updateBugDateResponse = invokeurl
[
url :updateBugURL
type :POST
parameters:updateBugParams
];
info updateBugDateResponse;