task = invokeurl
[
url :APIEndPoint + "/portal/" + portalId + "/projects/" + projectId + "/tasks/" + taskId + "/"
type :Get
connection:"**************"
];
tasklistId = task.get("tasks").get(0).get("tasklist").get("id");
tasklist = invokeurl
[
url :APIEndPoint + "/portal/" + portalId + "/projects/" + projectId + "/tasklists/" + tasklistId + "/tasks/"
type :Get
connection:"*************"
];
m = "";
owners = task.get("tasks").get(0).get("details").get("owners");
for each owner in owners
{
id = owner.get("id");
m = m + id + ",";
}
remainingtasks = tasklist.get("tasks");
for each remainingtask in remainingtasks
{
ID = remainingtask.get("id");
param = Map();
param.put("person_responsible",m);
final = invokeurl
[
url :APIEndPoint + "/portal/" + portalId + "/projects/" + projectId + "/tasks/" + ID + "/"
type :Post
parameters:param
connection:"************"
];
}
return "success";
Creating custom functions in Zoho Projects is straightforward and well-documented. Zoho provides a range of built-in functions that you can use as a starting point, and you can also easily define your own functions using Zoho's scripting language, Deluge. Give it a try and see how it can save your time and boost your productivity!
Watch this space for more such custom function codes.