Power of Automation :: Auto-Sync Custom Date Field Between Related Tasks via Blueprint Transition

Power of Automation :: Auto-Sync Custom Date Field Between Related Tasks via Blueprint Transition

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 ::

We have created a custom date field in the Task module. The requirement is to automatically update this date field in another task whenever it is changed during a Blueprint transition.

Example:

We have two tasks — Task Alpha and Task Beta.

When Task Alpha is completed through a Blueprint transition, the Custom Date Field is updated (this step is mandatory). Once this transition is completed, the same Custom Date Field value should be automatically pushed to Task Beta, updating its Start Date and Due Date accordingly.

This functionality can be implemented using Custom Functions. First, establish a connection with the Zoho Projects service using the scopes 'ZohoProjects.Tasks.ALL'.

Make sure to set the connection link
 name to ‘connectionprojects’ in the code provided below. The screenshots of Arguments is attached for reference.
nextTaskName = "hello"; // update the next task name here and make sure its unique
params = Map();
params.put("filter",{"criteria":{{"field_name":"name","criteria_condition":"is","value":{nextTaskName}}},"pattern":"1"});
getTasks = invokeurl
[
url :projectsV3Endpoint + portalId + "/projects/" + projectId + "/tasks"
type :GET
parameters:params
connection:"connectionprojects"
];
nextTaskId = getTasks.get("tasks").get(0).get("id");
updateTaskParam = Map();
updateTaskParam.put("start_date",toString(customDate,"MM-dd-yyyy"));
updateTaskParam.put("end_date",toString(customDate,"MM-dd-yyyy"));
updateTaskResponse = zoho.projects.update(portalId,projectId,"Tasks",nextTaskId,updateTaskParam,"connectionprojects");
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.


    Access your files securely from anywhere







                            Zoho Developer Community




                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                  • Ask the Experts



                                                            • 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


                                                            Manage your brands on social media



                                                                  Zoho TeamInbox Resources



                                                                      Zoho CRM Plus Resources

                                                                        Zoho Books Resources


                                                                          Zoho Subscriptions Resources

                                                                            Zoho Projects Resources


                                                                              Zoho Sprints Resources


                                                                                Qntrl Resources


                                                                                  Zoho Creator Resources



                                                                                      Zoho CRM Resources

                                                                                      • CRM Community Learning Series

                                                                                        CRM Community Learning Series


                                                                                      • Kaizen

                                                                                        Kaizen

                                                                                      • Functions

                                                                                        Functions

                                                                                      • Meetups

                                                                                        Meetups

                                                                                      • Kbase

                                                                                        Kbase

                                                                                      • Resources

                                                                                        Resources

                                                                                      • Digest

                                                                                        Digest

                                                                                      • CRM Marketplace

                                                                                        CRM Marketplace

                                                                                      • MVP Corner

                                                                                        MVP Corner







                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now


                                                                                            Zoho Show Resources

                                                                                              Zoho Writer

                                                                                              Get Started. Write Away!

                                                                                              Writer is a powerful online word processor, designed for collaborative work.

                                                                                                Zoho CRM コンテンツ



                                                                                                  Nederlandse Hulpbronnen


                                                                                                      ご検討中の方