Custom Functions for Issues | Online Help | Zoho Projects

Custom Functions for Issues

Automate your issues workflow using Custom Functions. A custom function is a piece of code that can be used for automating a process. You can write your own function in Deluge and call it from one or more business rules. It is similar to the built-in functions in Javascript like DATE, CONCAT, REPLACE, etc. In Zoho Projects, you can update the issue fields automatically using Workflow rules. With the help of custom functions, you can automate a notification, call a webhook, or perform logic right after a Workflow rule is triggered.

Notes
Feature Availability: Latest  Enterprise plan.

Benefits

  • When an issue is escalated, user can be notified via an email or a Zoho Chat using custom functions.
  • When an issue's severity is updated, a relevant comment can be added to the issue via a custom function.
  • Integration can be done with Zoho Apps and third party apps using a custom function.

Add a Custom Function

  1. Click  in the top navigation bar.
  2. Navigate to Marketplace and click Custom Functions under Developer Space.
  3. Select Issues from the dropdown box.
  4. Click New Custom Function.
  5. Enter a Function Name and a Description.
  6. Set the Arguments.
  7. Type in your code in the Deluge script editor or drag and drop the parameters available in the left panel of the editor and customize them.
  8. Click Save.

Idea
Helen wants to notify a set of users in her project about the change of issue owner for a specific issue upon escalation. She might have to send the notification very often to the same set of users on this subject in the future as well. So, Helen decides to create a custom function and get it called through one of the business rules. This is how her custom function will look.

 Associate a Custom Function With a Business Rule

  1. Click  in the top navigation bar.
  2. Navigate to Issue Tracker and click Business Rules.
  3. Select a rule and navigate Actions tab.
  4. In Actions, click Call Custom Function.
  5. Click the plus icon  to create a new custom function or click the chain icon to call an existing function from the business rule.
  6. Click Save Rule.

Learn More about configuring business rules.

We have a few predefined gallery functions that are ready to use.
  1. Click in the top navigation bar.
  2. Navigate to Developer Space and click Custom Functions.
  3. Hover over the drop-down beside the Custom Functions header and select Issues from the drop-down.

  4. Click Create Custom Function.
  5. Hover over any of the listed functions and click Use Function.
  6. In the Create Custom Function page, select the project, change the function name and arguments if needed.  
    Note: The deluge code is prefilled. The TODO lets users know the edits to the code before it can be executed.

  7. Click Save or Save and Execute to run the custom function.
  1. Create a task for an issue
  2. Update the status of an associated task
  3. Create an issue and link it to an existing issue
  4. Sync bug status timeline with Analytics
  5. Send message to a Slack channel
  6. Approve or reject associated time log entries
  7. Auto-complete a phase
  8. Complete associated tasks once all issues are closed
  9. Update project status
  10. Update the status of a linked issue
  11. Sync bug due date changes with Analytics
  12. Count the number of times an issue is reopened 
  13. Send message to a Cliq channel  

Execute a Custom Function

  1. Click  in the top navigation bar.
  2. Navigate to Marketplace and click Custom Functions under Developer Space.
  3. Select  Issues from the dropdown box.
  4. Click the function that you would like to execute. Here, Helen tries to execute the function "Send_Mail".
  5. Click Save and Execute at the bottom.
  6. Enter the Issue ID (i.e, the argument).
  7. Click Execute.

 Test Custom Function Integration

  1. Add test data in Zoho Projects that match your business rule criteria.
  2. Check for updates received from Zoho Projects in your application via a notification triggered through your custom function.
  3. If there is an error, modify your custom function in Zoho Projects and retest.
  4. Continue testing until you get the correct output. Here, John Marsh, Victor Young, and Lin Brenn receive a notification from Helen on the change in issue ownership.
You can add upto 10 arguments.

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION





                              Quick Links Workflow Automation Data Collection
                              Web Forms Enterprise Begin Data Collection
                              Interactive Forms Workplace Data Collection App
                              CRM Forms Customer Service Accessible Forms
                              Digital Forms Marketing Forms for Small Business
                              HTML Forms Education Forms for Enterprise
                              Contact Forms E-commerce Forms for any business
                              Lead Generation Forms Healthcare Forms for Startups
                              Wordpress Forms Customer onboarding Order Forms for Small Business
                              No Code Forms Construction RSVP tool for holidays
                              Free Forms Travel
                              Prefill Forms Non-Profit

                              Intake Forms Legal
                              Mobile App
                              Form Designer HR
                              Mobile Forms
                              Card Forms Food Offline Forms
                              Assign Forms Photography
                              Mobile Forms Features
                              Translate Forms Real Estate Kiosk in Mobile Forms
                              Electronic Forms

                              Notification Emails for Forms Alternatives Security & Compliance
                              Holiday Forms Google Forms alternative  GDPR
                              Form to PDF Jotform alternative HIPAA Forms
                              Email Forms
                              Encrypted Forms
                              Embeddable Forms
                              Secure Forms
                              Drag & drop form builder
                              WCAG

                                    Create. Review. Publish.

                                    Write, edit, collaborate on, and publish documents to different content management platforms.

                                    Get Started Now




                                                      You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                          Manage your brands on social media


                                                            • Desk Community Learning Series


                                                            • Digest


                                                            • Functions


                                                            • Meetups


                                                            • Kbase


                                                            • Resources


                                                            • Glossary


                                                            • Desk Marketplace


                                                            • MVP Corner


                                                            • Word of the Day


                                                            • Ask the Experts


                                                              Zoho Sheet Resources

                                                               

                                                                  Zoho Forms Resources


                                                                    Secure your business
                                                                    communication with Zoho Mail


                                                                    Mail on the move with
                                                                    Zoho Mail mobile application

                                                                      Stay on top of your schedule
                                                                      at all times


                                                                      Carry your calendar with you
                                                                      Anytime, anywhere




                                                                            Zoho Sign Resources

                                                                              Sign, Paperless!

                                                                              Sign and send business documents on the go!

                                                                              Get Started Now




                                                                                      Zoho TeamInbox Resources





                                                                                                Zoho DataPrep Demo

                                                                                                Get a personalized demo or POC

                                                                                                REGISTER NOW


                                                                                                  Design. Discuss. Deliver.

                                                                                                  Create visually engaging stories with Zoho Show.

                                                                                                  Get Started Now









                                                                                                                      • Related Articles

                                                                                                                      • Issues

                                                                                                                        Issues listing page Go to the Projects module. Select a project. Click on Issues. All issues of the chosen project will be listed here. From here, you can perform the actions described below. Add issues Click the icon at the bottom-right corner to ...
                                                                                                                      • Issues

                                                                                                                        Issues listing page Access Issues To view issues for the current project: Go to the Projects module. Select a project. Click on Issues. Add Issues Click the icon at the top-right corner to add new issues to the project. Group and Sort Issues Click ...
                                                                                                                      • Issues

                                                                                                                        Projects can face all sorts of undesirable issues. These could be software not performing as expected, materials not conforming to standards, missing or broken components, and so on. They can result in poor output and delayed deliverables, which in ...
                                                                                                                      • Issues

                                                                                                                        The Overview - Issues section lists down all the issues in a portal. By default, users will view all open issues assigned to them across all the projects. Users can also select other default or custom views using a drop-down. In the List view, the ...
                                                                                                                      • Custom Functions for Projects

                                                                                                                        Automate your project workflow using Custom Functions. A custom function is a software code that can be used to automate a process. In Deluge, you can write your own function and call it from one or more Workflow rules. It is similar to Javascript's ...
                                                                                                                        Wherever you are is as good as
                                                                                                                        your workplace

                                                                                                                          Resources

                                                                                                                          Videos

                                                                                                                          Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                          eBooks

                                                                                                                          Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                          Webinars

                                                                                                                          Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                          CRM Tips

                                                                                                                          Make the most of Zoho CRM with these useful tips.



                                                                                                                            Zoho Show Resources