taskdetails = invokeurl[url :"https://projectsapi.zoho.com/restapi/portal/" + portalId + "/projects/" + projectId + "/tasks/" + taskId + "/"type : Getconnection:"zoho_projects"];info taskdetails;if(status == "Completed"){successors = taskdetails.get("tasks").get(0).get("dependency").get("successor");for each successor in successors{id = successor.get(0);m = Map();m.put("custom_status",1213708000000734023);updatetask = invokeurl[url :"https://projectsapi.zoho.com/restapi/portal/" + portalId + "/projects/" + projectId + "/tasks/" + id + "/"type :Postparameters:mconnection:"zoho_projects"];}return "success";