Automation Series: Assign Subsequent Task Owner on Completion

Automation Series: Assign Subsequent Task Owner on Completion

When a project progresses, tasks get piled up over time. As new tasks are created, tracking ownership and assigning them can become time consuming. In Zoho Projects, this can be addressed by automating task assignment using Custom Function, so that ownership is assigned once the previous task is Closed.

Use-case

In a pharmaceutical manufacturing unit, the procurement phase involves a set of tasks such as raw material sourcing, quality checks, approvals etc. These tasks are often repetitive and handled within the task list. Even if tasks are added by different teams based on requirements, and the list continues to expand, task ownership might remain unassigned until a user is assigned manually. This delays the other upcoming tasks and project timelines.

With this automation, a workflow rule is triggered when a task is marked as Closed. When a Custom Function is associated with the rule, it automatically assigns the next task to a particular user. This ensures related tasks continue with the same owner without manual intervention.

To configure this flow in your Zoho Projects portal,

      1. Navigate to the upper-right corner of the page.
      2. Click  → Developer Space → Connections.
      3. Click Create Connection and add the following scopes:
  1. ZohoProjects.users.READ
  2. ZohoProjects.tasks.READ
  3. ZohoProjects.tasks.UPDATE



      4. Navigate to Custom Functions under Developer Space.
      5. Click on the Tasks tab in the upper navigation panel.
      6. Create a new custom function and add the below Deluge script.
Notes
Ensure that the portal URL aligns with your data centre. If not, the function may not execute as expected.
  1. // scopes: ZohoProjects.users.READ, ZohoProjects.tasks.READ, ZohoProjects.tasks.UPDATE
  2. // replace userEmail - ["alex@abc.com","bob@abc.com"] with your next task owner email id
  3. userEmail = ["alex@abc.com","bob@abc.com"];
  4. projectsV3Endpoint = "https://projectsapi.zoho.com/api/v3/portal/";
  5. params = Map();
  6. params.put("filter",{"criteria":{{"field_name":"status","criteria_condition":"custom_condition","value":{"${ALL_OPEN}"}}},"pattern":"1"});
  7. params.put("sort_by","ASC(created_time)");
  8. getTasks = invokeurl
  9. [
  10. url :projectsV3Endpoint + portalId + "/projects/" + projectId + "/tasks"
  11. type :GET
  12. parameters:params
  13. connection:"connectionprojects"
  14. ];
  15. nextTaskId = getTasks.get("tasks").get(0).get("id");
  16. owners = List();
  17. for each email in userEmail {
  18. userEmails = List();
  19. userEmails.add(email);
  20. params = Map();
  21. params.put("type",1);
  22. params.put("page",1);
  23. params.put("view_type",1);
  24. params.put("per_page",50);
  25. params.put("filter",{"criteria":{{"cfid":"4","criteria_condition":"contains","value":userEmails}},"pattern":"1"});
  26. getAllUsers = invokeurl
  27. [
  28. url :projectsV3Endpoint + portalId + "/projects/" + projectId + "/users"
  29. type :GET
  30. parameters:params
  31. connection:"connectionprojects"
  32. ];
  33. userId = getAllUsers.get("users").get(0).get("id");
  34. zpuids = Map();
  35. zpuids.put("zpuid",userId);
  36. owners.add(zpuids);
  37. }
  38. updateTaskParameter = Map();
  39. updateTaskParameter.put("owners_and_work",{"owners":owners});
  40. updateTaskResponse = invokeurl
  41. [
  42. url :projectsV3Endpoint + portalId + "/projects/" + projectId + "/tasks/" + nextTaskId
  43. type :PATCH
  44. parameters:updateTaskParameter.toString()
  45. connection:"connectionprojects"
  46. ];
  47. return "success";
Info
Line 3: Add the user email IDs to whom the tasks should be assigned.
Line 4: Modify the data centre URL to match your Zoho Projects portal.
Lines 13, 31 and 45: Replace "connectionprojects" with your Zoho Projects connection name.
      7. Add the following arguments during configuration.



      8. Navigate to   → Automation → Workflow Rules.
      9. In the upper navigation panel click on Tasks Tab → New Workflow Rule.
      10. Select the execution condition as Based on User Action and execute the rule when a task is Updated.
      12. Click Add Criteria+ and set this trigger Task Status Is Closed from the drop-down
      11. Click +Add Action and select Associate Custom Function and select the previously created custom function.
      12. Click Save Rule.
      13. Toggle the Workflow Rule Status on to enable it.



With this automation in place, ownership assignment becomes effortless, ensuring tasks are taken up as ongoing ones are complete.

If you have any questions, feel free to drop a comment below or reach out to us at support@zohoprojects.com.
    • Sticky Posts

    • Automation Series: Auto-assign Task Followers

      As task progresses, several users are required to stay aware of the updates to plan their upcoming work items efficiently. Manually adding users as followers for an active task might create additional overhead. With this automation, followers can be added
    • WhatsApp Business Integration for Zoho Projects

      Delivery channel plays a decisive role in how quickly certain project updates translate into immediate actions. A release is ready to go live. An issue is marked critical. An approval is pending. These moments are less about tracking and more about timely
    • Enhanced Collaboration and Global Web Tabs

      Hello Users, We are rolling out two key enhancements in Zoho Projects that will be part of our November release. Here’s what to expect: 1. Collaboration Section in the Left Navigation Panel What’s new? All communication and interactive tools will be grouped
    • Choosing the Right Automation in Zoho Projects

      In any project, different types of actions are needed at different points. Some projects require control on how tasks move, some require reacting to updates, and some require executing additional actions beyond the task. Automation in Zoho Projects is
    • Introducing Version-3 APIs - Explore New APIs & Enhancements

      New Update - The end of life timeline for V2 APIs has now been extended to 30th June, 2026 Happy to announce the release of Version 3 (V3) APIs with an easy to use interface, new APIs, and more examples to help you understand and access the APIs better.

    Nederlandse Hulpbronnen


      • Recent Topics

      • How to set default reply email address depending on receipt email address

        Hi, I have a number of different customer support email addresses (info@XYZ.com, retuns@XYZ.com etc.) and want to set Zoho Desk so that the email address from which an agent replies is automatically defaulted to a predetermined address depending to which
      • Writer is horrible

        Form filling is about unusable for complex forms! I am so tired of it.
      • How to Migrate from MDaemon to Zoho Mail Account?

        Hi there, Zoho Mail is one of the most popular as well as leading competitor for several cloud email service providers. It is It provide cloud email service as well as desktop based email client. In recent years people are migrating from third party cloud servers to Zoho Mail. The reasons are plenty, i.e. the user interface, security, high performance and many countless amazing features. On the other hand MDaemon Mail (aka WorldClient) is also popular among cloud email servers. But there are some
      • Trigger workflows from SLA escalations in Zoho Desk?

        Hey everyone, I’m currently working with SLA escalation rules in Zoho Desk and ran into a limitation that I’m hoping someone here has solved more elegantly. As far as I can tell, SLA escalations only support fairly limited actions (like changing the ticket
      • CRM Portal Lookup Linkage and Related Fields

        hi, if someone can give me the right path, would be greatly appreciated. we want to do a customer portal for our partners who we issue work orders for our customers, the linkage via lookup fields Partner -> Work Order -> Customer in our portal, the primary
      • HOW TO: Searching a thread (email body/text) with a custom function, allowing filtering and specific actions

        We are still trialing out Zoho at this time, but have found a major expected feature to be missing - the ability to search within the text of an email for automation/workflows. NOTE: You need to create a connection for zohodesk under settings -> Developer
      • Cold emails not allowed?

        I planned to use Zoho Mail to send businesses some cold emails to offer my freelance writing services, but I noticed that the anti-spam policy is very strict -- no commercial emails whatsoever without prior permission from the recipient? I would be very
      • Zoho Team Inbox - roadmap

        Hi, would be good to understand the Teaminbox roadmap, in particular: 1. API / Zoho Deluge connections. We have a process where the each email needs to be either tagged or assigned daily. It would be great if we could automate a 5pm alert for any exemptions
      • Leave Time - Past Dates by Pay Period

        Under Settings | Leave Policy | [policy name] | Restrictions, one can set a number of days that an employee can go back to apply leave. This is very good and very needed. However, in most organizations, the real deadline isn't X number of days from the
      • Link webform to a job opening

        I have a webfrm embeded on my website and everytime a candidates fill the form, their candidate status is to new. Is it possible that it links to a specific job opening instead of me having to assing it manually ? Thanks
      • New in WorkDrive: Organize your storage using Data Templates

        Organizations generate huge volumes of data day in and out. From financial reports, client details, and resumes to promotional images, product videos, and more. The list is endless. When you have so much data to manage, you need to classify your documents and structure them in a way that makes them more accessible.  This is exactly what WorkDrive's Data Templates lets you do! You can create Data Templates, add meta data as custom fields, and associate those fields with files and folders based on
      • Need Native Support for docx files in Zoho Writer

        Absolutely love Zoho Writer, but often need to share files by email with people who are in the Office ecosystem. Downloading a file as docx, then sending it by email, getting the comments back, converting it to Zoho format, editing it, then converting
      • Mirror Component in Zoho CRM: Access real-time related data without leaving your record

        Hi everyone, This feature is now available for the JP, CA, SA, UAE, and AU DCs. We're excited to bring to you Zoho CRM's mirror component, which presents relevant data on a record's details page and keeps everything users need in one place without having
      • Associate records via the Multi-select lookup RELATED LIST via API

        In the REST API, is there a way to associate records for a multi-select lookup related list other than via the linking module? There are two methods for the lookup: 1. via insert records API 2. via the linking module ...as described in https://help.zoho.com/portal/en/community/topic/kaizen-125-manipulating-multi-select-lookup-fields-mxn-using-zoho-crm-apis
      • What's New - May 2026 | Zoho Backstage

        Another month, another round of improvements in Zoho Backstage. We’ve been busy refining existing experiences and introducing new capabilities to help you plan, manage, and deliver successful events with less effort. Here’s a quick look at everything
      • Product sorting in Zoho Commerce - how can I influence standard behaviour?

        Hello Zoho, I want to sort my products by e.g. name, SKU (Ascending / Descending) or by another attribute. I could neither find any solution in the settings, nor an entry in this help. Can you advice how this would work? Seems the standard sorting is
      • Dynamically prefill ticket fields

        Hello, I am using Zoho Desk to collect tickets of our clients about orders they placed on our website. I would like to be able to prefill two tickets fields dynamically, in this case a readonly field for the order id, and a hidden field for the seller
      • Price Managment

        I have been in discussions with Zoho for some time and not getting what I need. Maybe someone can help explain the logic behind this for me as I fail to understand. When creating an item, you input a sales rate and purchase rate. These rates are just
      • Workflow Assistance in Zoho CRM

        Our client's sales team visits customers on-site and currently fills a physical paper form to capture customer details, and then separately re-enters the same data into Zoho CRM via the mobile app — resulting in double data entry. We want the salesperson
      • Integration problem between zoho crm and zoho forms for an update in zcrm, with two mapped custom fields

        Hello everyone, I need to correct an existing integration between Zoho CRM and Zoho Forms: the use case is that a user needs to send an email to a contact, who will click on a button in this email, redirecting to a Zoho Forms. The contact can update or
      • Delivery Note without services

        Hi all, It there a possibility to create a delivery note from an invoice without the listed services "idem type: service"? Thank you in advance, Michel
      • Automation Series: Auto-assign Task Followers

        As task progresses, several users are required to stay aware of the updates to plan their upcoming work items efficiently. Manually adding users as followers for an active task might create additional overhead. With this automation, followers can be added
      • Send Email Directly to Channel

        Hi, We are coming from Slack. In Slack each channel has a unique Email address that you can send emails too. I currently forward a specific type of email from my Gmail InBox directly do this channel for Verification Codes so my team doesn't have to ask
      • Terms & Conditions

        I have defined Terms & Conditions in the invoice setting and have set %TermsAndCondition% where I want it to appear but nothing shows up in that area. Is this something we have to define per invoice or can we have a global variable?
      • Billing Status Update

        Hello Latha, I’m working on a new automation (deluge) to fulfill one of our requirements. In this automation, there is a step to update the Work Order billing status from “Not Yet Invoiced” to “Non-Billable.” I tried to find the API information relevant
      • Export to pdf. Images not showing

        My report contains a column with images. When I export it as a list, the images do not show in the PDF document. I have published the report but the images are still not visible. What should I do so that the photos appear in the export?
      • Zoho CRM Kiosk question – Passing Screen Fields to a Function

        I am building a Kiosk in Zoho CRM to create new Supplier (Vendors) records. Current setup: Screen 1 contains user input fields: Supplier Name (Vendor_Name) First Name (First_Name) I created a Deluge function: createSupplier(vendor_name, first_name) The
      • パスワード

        ログインするためのパスワード取得したい。
      • Associate Zoho Project with Deal that is in a specific stage?

        Hi there, When a deal hits a certain stage, I'd like to associate it with an pre-exisiting zoho project? I am using blueprints. Using a custom function and deluge, how could I do this? I was thinking that the easiest option would be the modify the pre-made
      • [Product Update] Locations module migration in Zoho Books integration with Zoho Analytics

        Dear Customers, As Zoho Books are starting to support an advance version of the Branches/Warehouses module called the Locations module, users who choose to migrate to the Locations module in Zoho Books will also be migrated in Zoho Analytics-Zoho Books
      • Canvases Auto-Skewing/Adding Scroll Bars When They Were Not There Prior

        Is anyone else noticing rendering issues in their canvases today? It seems to be mainly icons which now have scroll bars added which makes them all look off, though some fields seemed to revert to squished length as well. Were the icons replaced with
      • New UI for Writer - Disappointed

        I've been enjoying Zoho Writer as a new user for about 6 months, and I really like it. One of my favorite things about it is the menu bar, which you can hide or leave out while still seeing most of your page because it is off to the left. I think this
      • Client Script Button in Related List become invalid

        Hi, I am the admin of our organization. And I setup a client script button in related list to raise payment refund request While this button become non selectable recently. I believe there is something wrong from zoho as this button had run for a year.
      • SMTP outgoing problem

        Hello I have a website where the SMTP email is connected through Zoho Mail SMTP. Today I am no longer receiving emails from the website. Joomla shows that the email was sent successfully, but I do not receive it.
      • Fiscal year setting

        Hi, I am looking into using Zoho Books. I cannot understand the organisation fiscal year setting. Our fiscal year runs from 1 April to 31 March. In the organisation profile, I need to set Fiscal Year to “April to March” and Start Date to “2” for the period
      • Issue with payments on invoices

        Hello, I’m having the following issue. When I create an invoice and try to apply a partial payment in a single transaction, the system does not allow it — it only allows full payment. Is this the expected behavior, or am I missing some configuration?
      • auto add as member the contact owner

        is there a way that i can make a zoho flow that will add the owner of the contact as a member of the chat after the round robin assignment?
      • Welcome to Zoho CommunitySpaces

        Hello everyone, This is your space to ask questions, share ideas, and connect with others building and growing their own communities. For those new here, Zoho CommunitySpaces is a platform for building and managing online communities—from discussion spaces
      • Announcing new features in Trident for Windows (v.1.20.4.0)

        Hello Community, Trident for Windows is here with some new features to elevate your work experience. Let's take a quick look at what's new. Export emails. You can now export emails in the .eml file format as compressed zipped files to create a secure
      • Announcing new features in Trident for Windows (v1.14.5.0)

        Hello Community, Trident for Windows is here with new features to elevate your workplace productivity. Let's take a quick look at what's new. Add and edit contacts Previously, you could view all of your personal and organizational contacts in Trident.
      • Next Page