Power of Automation :: Smart Ticket Management Between Zoho Desk and Projects

Power of Automation :: Smart Ticket Management Between Zoho Desk and Projects

Hello Everyone,


A custom function is a software code that can be used to automate a process and this allows you to automate a notification, call a webhook, or perform logic immediately after a workflow rule is triggered. This feature helps to automate complex tasks and calculations. 


Below is the use case ::

Automatically Re-open the status of tickets in Zoho Desk once the status of the linked bug is closed in Zoho Projects.

This functionality can be implemented using Custom Functions & Business Rules. First, establish a connection with the Zoho OAuth service using the scopes 'ZohoDesk.tickets.ALL, ZohoProjects.bugs.ALL'.

Make sure to set the connection link
name to ‘ projectsdesk’ in the code provided below. The screenshots of Arguments is attached for reference.
projectsURL = "https://projects.zoho.in";
getTicketId = invokeurl
[
url :projectsURL + "/api/v3/portal/" + portalId + "/projects/" + projectId + "/bugs/" + bugId + "/tickets?supportinfo_available=true"
type :GET
connection:"projectsdesk"
];
info getTicketId;
for each  ticket in getTicketId
{
ticketInfo = ticket.get("supportpage_url").toList("/");
ticketId = ticketInfo.get(ticketInfo.size() - 1);
paramMap = Map();
paramMap.put("status","Open");
//Update ticket status
updateTicket = invokeurl
[
url :deskURL + "/api/v1/tickets/" + ticketId
type :PATCH
parameters:paramMap.toString()
connection:"projectsdesk"
];
}

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.
    • Sticky Posts

    • Time Log Reminder

      Tracking the time spent on tasks and issues is one of the most important functions of a timesheet. However, users may forget to update the time logs because they have their own goals to achieve. But, time logs must be updated at regular intervals to keep
    • Introducing the Zoho Projects Learning Space

      Every product has its learning curve, and sometimes having a guided path makes the learning experience smoother. With that goal, we introduce a dedicated learning space for Zoho Projects, a platform where you can explore lessons, learn at your own pace,
    • Update on V2 API End-of-Life Timeline

      Dear Users, Earlier this year, we shared the launch of the V3 APIs and requested users to migrate from the older V2 APIs by December 2025. We have received valuable feedback from our users and partners regarding their migration timelines. We are happy
    • Automation Series: Auto-update Phase Status

      Hello Folks! You can auto-update your phase's status based on status of underlying tasks using custom functions. In this series, we will showcase how to create and run custom functions, using Deluge, with ease. Follow the steps below and automate your
    • Automate Timesheet Approvals with Multi-level Approval Rules

      Introducing Approval Rules for Timesheets in Zoho Projects. With this automation, teams can manage how timesheets are reviewed and approved by setting up rules with criteria and assigning approvers to handle submissions. Timesheet, when associated to