Linking a Zoho Projects Task to a Zoho Desk Task via API

Linking a Zoho Projects Task to a Zoho Desk Task via API

Linking a Zoho Projects Task to a Zoho Desk Task via API

Hey everyone,

I want to create a task in Zoho Desk from Zoho Projects. We use Zoho Desk Tasks for workload distribution. As an IT service provider, we handle tasks generated from support tickets as well as those originating from projects.

To streamline task assignment, we use Zoho Desk Tasks as a central hub for our dispatcher. I’ve developed an app that allows our dispatcher to distribute Zoho Desk tasks based on the estimated workload of each employee.

Here’s a screenshot:


Now, to my question: While I can create a Zoho Desk task directly from Zoho Projects using the built-in functionality, I haven’t found a way to link the task to its corresponding project task. When using the Zoho Desk Plugin for Zoho Projects, tasks are automatically linked to their respective Zoho Projects tasks.


I assume that I might just need to set the Desk Task ID in Zoho Projects, and the plugin will handle the rest.

Here the json from a projects Task linked with a Zoho Task and Ticket.

{
    "tasks": [{
...............
            "desk": {
                "task": {
                    "id": "186518000022462645"
                },
                "ticket": {
                    "number": "294370",
                    "id": "186518000018389361"
                }
            },
...............
Here’s my current approach:

// ....
response = zoho.desk.create(desk_orgid,"tasks",taskmap,"desk_task"); //it works
desk_taskid = response.get("id");
desk_map = Map();
task_map = Map();
task_map.put("id",desk_taskid);
desk_map.put("task",task_map);
update_map = Map();
update_map.put("desk",desk_map);
info update_map;
project_taskid = zoho.projects.update(org_id,projectid,"tasks",taskid,update_map,"desk_task"); 
return project_taskid;

After that, there is no desk task id in the Project Task JSON.

Thanks for your help.