Power of Automation :: Automatically start / pause / stop timer on task status update.

Power of Automation :: Automatically start / pause / stop timer on task status update.

Hello Everyone,

A Custom function is a user-written set of code to achieve a specific requirement. Set the required conditions needed as when to trigger using the Workflow rules (be it Tasks / Project) and associate the custom function to it.

Requirement:-

One of our customers would like to start / pause / stop the the timer based on below status update for the Task.

Task status - In Progress - Start the timer.

Task status - hold - Pause the timer.

Task status - closed - Stop the timer.

Above requirement can be implemented using Task custom functions along with Workflow rules in Zoho Projects.

Custom function code:-


// TODO: Please create a connection for the Zoho Projects service with the scopes scopes: ZohoProjects.tasks.ALL,ZohoProjects.Timesheet.ALL
Click this link below to learn how to create the connection.


endPoint = "https://projectsapi.zoho.com/restapi/portal/";

if(equalsIgnoreCase(statusValue,"In progress"))

{
startTimerResponse = invokeurl
[

url :endPoint + portalId + "/projects/" + projectId + "/tasks/" + taskId + "/timer/?action=start"

type :POST
connection:"xxxxxx"

];

}

if(equalsIgnoreCase(statusValue,"hold"))

{

pauseTimerResponse = invokeurl

[

url :endPoint + portalId + "/projects/" + projectId + "/tasks/" + taskId + "/timer/?action=pause"

type :POST

connection:"xxxxxx"

];

}

if(equalsIgnoreCase(statusValue,"closed"))

{

stopTimerResponse = invokeurl

[

url :endPoint + portalId + "/projects/" + projectId + "/tasks/" + taskId + "/timer/?action=stop&approver=" + actionperformerId

type :POST

connection:"xxxxxx"

];

}

return "success";

Make sure to replace xxxxxx with the Zoho Projects connections link name. Screenshot of the list of parameters to be mapped and sample Task workflow rule is attached for reference.

We hope you found this post useful. If you have any questions or wondering if your requirement could be met using custom functions, feel free to share them in the comments section below.

 

 

 


    • Sticky Posts

    • 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
    • Accessibility Spotlight Series - 1

      Every user interacts with products differently, what feels intuitive to one may be challenging for another. Addressing this, accessibility is built into Zoho Project's design philosophy. This helps users navigate and perform actions with ease irrespective
    • Customize User Invites with Invitation Templates

      Invitation Templates help streamline the invitation process by allowing users to create customized email formats instead of sending a one-size-fits-all email. Different invitation templates can be created for portal users and client users to align with
    • Zoho Projects - Q3 Updates | 2025

      Hello Users, The final quarter of the year 2025 has begun, and we at Zoho Projects are all set with a plan. New targets to achieve and new milestones to reach, influenced by the lasting imprint of the past quarter. 2025's Q3 saw some new features and
      • Recent Topics

      • Zoho Creator HTML Page

        Hello Team, I have a query related to the HTML page I created in Zoho Creator. I would like to apply some filters on this page without passing them through URL parameters. Could someone please guide me on how this can be achieved? Thanks & Regards, Piyush
      • Remote Assist Reboot - User can't login

        Last night one of our support agents was using Zoho Assist doing a remote assist session.  A reboot was required. Upon rebooting the Windows 10 user says he can't login and that he is getting an invalid password error.   Is this a known problem? Any thoughts?  Awaiting customer to arrive at work today to attempt safe mode boot.
      • Move a ticket from one department to another without creating the product in both departments

        Hello everyone, I am having serious problems with the products. When a customer creates a ticket in a department and selects a product by mistake and we move it to the corresponding department it automatically creates in both departments the product.
      • How do I setup product syncing between Desk and CRM?

        How do I setup product syncing between Desk and CRM? I can see in Desk where to add products, but it doesn't show the existing products I imported into CRM. Where do I turn on the syncing? I assume there's an option somewhere similar to the option to
      • multiple users unable to view campaigns

        I have just added two users to zoho campaigns.  when they log in they don't see the details regarding the email campaigns already run.  i would like all users to access this.
      • If a contact is deleted from Zoho CRM, will all related activities be deleted related to the contact?

        I think question is clear.
      • Factur-X

        Bonjour, J'ai découvert dans la dernière release notes de Zoho Books, l'apparition du support du format Factur-X (Export Transactions in Factur-X Format | Help | Zoho Books), mais il faut apparemment activer une nouvelle fonctionnalité de taxes. Quelqu'un
      • On Duty Requests using API

        Currently we can only do attendance entries using API, we need to make on Duty Requests using API Use Case We are using different on premise devices to track meetings, we want to sync this data with Zoho People Currently we are manually making on duty
      • Zoho desk Instant messaging no notification

        We are using whatsapp inside zoho desk instant messaging, however my agents are not notified if there is someone who send a message. We all miss messages because there is no indication there has been a message send. No notification badge, no notifications
      • need help to set up feeds to Zoho books with CRM Perks plugin

        Hi there, I need help setting up feeds with the CRM Perks plugin. It is supposed to send various feeds, like orders, payments, etc., from Woocommerce to Zoho Books. I have been trying so hard but seem to be too thick to get it done :-( For months, I worked
      • Instagram Visiual Planner

        Hello, I am loving the new updates with Zoho Social, especially the Canva integration. Is Zoho planning to offer the Instagram Visual Planner where you can preview what posts will look like on your timeline grid view before posting? There are many programs
      • How to distribute expenses evenly over the year?

        I want to distribute cost of f.e. licences or inssurance that occour once a year over the year. How can I do this? Is this even possible?
      • Free webinar: Zoho Sign in Q1 2025 - A quick walkthrough

        Hi, The first quarter of 2025 has flown by, and the Zoho Sign team has been hard at work releasing enterprise-grade features to enhance overall collaboration. Join us for our upcoming webinar, where we'll discuss what's new and what's to come. What will
      • How do I make a recurring subtask?

        I have a user that has a monthly task with several subtasks. I can set the main task to monthly recurrence but I've been unable deter how to get the subtasks to transfer with the recurring task. Should I setup tasks with dependency instead?
      • Introducing Linkthread by Zoho Social — our new link in bio tool

        Hey everyone, We hope you're all doing amazing. We always love bringing features and tools to make your social media marketing journey easier, and today, we've got a brand new tool that we'd like to introduce to you. We know how important it is to make
      • Determine agent work hours and break timings with Desk's agent availability report

        Hello everyone, We are excited to tell you about updates to the agent availability report, designed to enhance efficiency in tracking agents’ activities. What is the agent availability report? The agent availability report helps managers monitor team
      • Planned, actual and forecast hours

        Hi there, I'm attempting to use Zoho to plan projects and time, but it's so confusing. I have two questions: Why, in the screen shot below, is my planned hours saying 8? I have assigned 8 work hours to the task, and I have logged 4 hours of actuals. I
      • Add Comment/Notes to Each Action in Zoho Flow for Internal Documentation

        It would be great if Zoho Flow could introduce a field to every action where we can make an internal note about why we are doing something with a specific action. This is especially helpful if more than one person from the organization handles automation
      • Kaizen #188 - Building a Timer and Worklog Widget (Part 2)

        Welcome back, Tech Wizards! In Part 1, we developed a Timer Widget that logs active work sessions into the Timer Entries module. Now, let's enhance this functionality by transferring these entries into the Work Log subform within the Cases module using
      • How to use Quoted/Invoiced_Items custom fields APIs in Deluge ?

        Hi, I'm trying to do a function to create an invoice from my existing quote, but I can't use some datas in the mandatory Quoted_Items Subform as it's from custom fields I've created and it's available only using APIs V2.1. So I tried what I found in the
      • Can Not Categorize Sales vs Services for "On The Fly" Line Items

        We can not categorize Sales (Goods) and Services with Zoho Books for "on the fly" line items when creating a transaction (quote or invoice). Zoho Books does not provide the basic ability to separate product sales and services for "on the fly" line items
      • Can a Custom Button (custom action) ask for user input?

        We have already a few buttons adding the actual date to some fields on Stages changes, now we need to ask the user for a Date and add it to a field. Can it be done using a button? or any other way?
      • Is is available to access notes from mobile app?

        As you know we have a notes section in the mail system at the website but can I access the Notes from the mobile app? Thanks in advance
      • Outlook sync (365) Restricting which contacts signals are created for & seeing my sales ppls email activity

        Hi All, As per the subject I want to restrict which contacts the signals notifications are activated for, and indeed which contacts email are tracked in the crm - my boss does not want his sensitive emails to end up in there but he does want to track
      • [Free Webinar] Learning Table Series - Zoho Creator for AI-Enhanced Property Management

        Hello Everyone! We’re excited to invite you to another edition of Learning Table Series, where we showcase how Zoho Creator empowers industries with innovative and automated solutions. About Learning Table Series Learning Table Series is a free, 45-60
      • Convert Prospect Back to a Lead in Zoho CRM

        Could anybody help me convert a prospect back into a lead? There does not seem to be any kind of "reverse" button. Thanks.
      • Function #35: Close all tasks associated with a lead and create a new task.

        Welcome back everyone! Last week, we learnt how to close all tasks of a deal depending upon the deal stage. This week, let's look at a custom function that lets you close all of the tasks associated with a lead while simultaneously creating a new task, like when you need to halt all progress towards a lead while the lead is not available at the moment but create a reminder task. Business scenario: The success of a company, in one way or another, is determined by the leads it gets. Each lead is just
      • Ticket closed, remove reopen ticket button

        Hi Zoho team, Is there a way to remove the Reopen ticket button when ticket is closed?
      • Request to View List of File and Folder Links in Zoho WorkDrive

        Hello, I need to check a list of links for the files and folders stored in Zoho WorkDrive. Although it is possible to check them one by one, I would like to know if there is a way to view them all at once in a list format. Could you please advise on how
      • Autotranslate only have 2 of my 3 languages

        My HelpCenter has three languages, as you can see below: I chose to use Google Translate for my automatic translations: I can only see 2 languages: How do I add the Portuguese here? Is this a bug? Thank you.
      • Como se guardan las imagenes que se cargan desde el Zoho Forms a Drive o Workdrive

        ¿Cómo puedo usar Zoho Flow para tomar un archivo subido en un formulario de Zoho Forms, extraer su ID de la URL y luego copiar ese archivo a una carpeta específica en Zoho WorkDrive de manera automatizada?
      • Record Summary Template Improvements

        Hi, Just a few suggestions to improve the usage of record summary templates. Some of them have been asked for before. Dynamic renaming of templates when sent as pdf attachment in sendmail task, also on export to pdf. Option for Page numbering. Option to add current date (${zoho.currentdate}) Option to repeat header and footer on each page. Subforms, more options in "Related Field Properties" for cell borders.(Currently only turns full border on or off)  Choose template to use as record summary from
      • In Zoho people Check in report the date want come as Colum how i can achive that in zoho people or analytics

        In Zoho people Check in report the date want come as Colum. How i can achive that in zoho people or analytics
      • How to customize member portal invite

        Hello, when I sent an invite to users to join member portal, here what they get below. Is there a template to edit or way to change how this mail being sent? I checked /zstore/settings/notification but unfortunately there is no invite mail template here.
      • Publish directly to production

        Hello! I am wondering if there is a way to publish changes directly to the production version of an application?
      • Infinite phone verification loop

        Hi, I'm trying to test your Mail service, but I am unable to due to a problem with the phone verification. I've correctly received the verification code and verified my phone number, but whenever trying to access the Mail portal in Zoho I am presented
      • how to do bulk delete for Zoho Desk tickets?

        how to do bulk delete for Zoho Desk tickets? The old UI has this function and now i cannot find it on the new UI. 
      • Workflows being applied and the Large unwanted popup

        When a workflow is being applied do to an action, then the Agent is left with a large Window asking if they would like the see the changes this workflow did. Is there any way to disable this prompt from appearing?
      • Urgent: Amazon Login Block Issue via Zoho – Suspected Integration Problem

        We’re currently experiencing a critical issue related to our Amazon login through Zoho. Although the client can still access the Amazon Seller Central account directly, our team is being blocked when trying to log in via Zoho. The account itself is not
      • Delete a lot of entries...

        Hi!, I synchronized a lot of accounts from my CRM and now I would like to delete them all. How to delete more than 50 accounts at once? Thx
      • Next Page