Automation Series: Auto-update Project End Date When a Task is Rescheduled

Automation Series: Auto-update Project End Date When a Task is Rescheduled

When a project is planned, tasks are scheduled within the projects timeline. Any delay in the predecessor tasks can delay dependent tasks, which can in turn impact the project timeline. Unless the project is manually rescheduled, the end date might not align with the task time line. This leads to discrepancies in the project. With this automation, the project roadmap stays aligned with the task's due date while also notifying the owner in case of any changes to the schedule.

Let's consider an event management firm coordinating an Award Ceremony. Here multiple tasks can depend on the outcome of a single task for before they progress. For example, tasks such as Trophy Engraving and Certificate Printing are dependent on the Nominee Confirmation task. When the jury takes time to confirm the nominee, the dependent tasks linked are postponed as well.

As the delays cascade, the final task ends up exceeding the project end date. With this automation, the project end date is updated automatically and the project owner receives an email notification. This ensures task and project due dates stay accurate even when task timeline shifts, eliminating the need for manual rescheduling.
Notes
This automation applies to both manual task date updates and dependency-based shifts.
To configure this flow in your Zoho Projects portal,

      1. Navigate to the upper-right corner of the page and click  → Developer Space → Connections.
      2. Click Create Connection, choose Zoho Projects as the service, and add the following scope:
  1. ZohoProjects.projects.UPDATE

Connection

      3. Navigate to Custom Functions under Developer Space.
      4. Click the Tasks tab in the top panel.
      5. Click on 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.projects.UPDATE
  2. endPoint = "https://projectsapi.zoho.in/api/v3/portal/";
  3. format = "dd-MM-yyyy";
  4. params = Map();
  5. if(taskDueDate != null && projectEndDate != null)
  6. {
  7. daysDiff = daysBetween(toDate(toString(taskDueDate,format)),toDate(toString(projectEndDate,format)));
  8. if(daysDiff < 0){
  9. params.put("end_date",toString(taskDueDate,"yyyy-MM-dd"));
  10. updateProjectResponse = invokeurl
  11. [
  12. url :endPoint + portalId + "/projects/" + projectId
  13. type :PATCH
  14. parameters:params.toString()
  15. connection:"projectdateupdate"
  16. ];
  17. sendmail
  18. [
  19. from :zoho.adminuserid
  20. to :projectOwner.get(0).get("email")
  21. subject :"Project End Date update in Zoho Projects!"
  22. message :"Hi, the " + projectName + " project end date has been updated to " + toString(taskDueDate,format)
  23. ]
  24. }
  25. }
  26. return "success";
Info
  1. Line 2: Replace the domain like AU, EU, CN, IN etc.in the URL to match your data centre.
  2. Line 13: Replace "projectdateupdate" with your Zoho Projects connection name.
      6. Add the following arguments during configuration.
      7. Click Save.
      8. Navigate to   → Automation → Workflow Rules.
      9. Click the Tasks tab in the top panel and click New Workflow Rule.

Workflow

    10. Select Based on User Action as the execution condition and execute the rule when a Task is Updated. Select Due Date from the dropdown.
    11. Click +Add Action and select Associate Custom Function. Select the custom function created previously.
    12. Click Save Rule.
    13. Toggle the Workflow Rule Status on to enable it.

Execution

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

    • Create Flexible Layouts with Layout Rules

      In a project, when a work moves from planning to execution, the information teams need can change at every stage. A project can need one set of details, a phase can need another, and a custom process may require an entirely different set of information.
    • 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,
    • Improve User Onboarding in Zoho Projects with Zoho DAP

      Rolling out new processes or onboarding new users in the tool comes with a familiar challenge: the employees need guidance at the moment they are doing the work. Traditional training sessions and knowledge sharing often require users to leave the application.
    • Create Custom Module Using AI in Zoho Projects

      Every team has its own way of managing work. While standard modules support common project management needs, many business processes require their own structure, fields, and terminology. With AI-powered Custom Modules in Zoho Projects, users can create
    • 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