Automation#26: Notify Parent Ticket Owner on Child Ticket Status Updates

Automation#26: Notify Parent Ticket Owner on Child Ticket Status Updates


Hello Everyone!
Ever found yourself juggling multiple service requests that seem like pieces of a larger puzzle? Managing interconnected tickets can be challenging, especially when updates on child tickets need to be tracked. That’s where our custom function steps in!
This week, we introduce a solution to notify the parent ticket owner whenever changes occur in child tickets. The Parent-Child Ticketing feature in Zoho Desk allows you to link related tickets for better tracking and collaboration. While different agents managed child issues, the parent ticket owner needed timely updates to stay connected with customers.

Here’s the custom function to address this – follow the steps below to configure it!
Prerequisites
1. Create a connection
  1.1 Go to Setup(S) and choose Connections under Developer Space.
  1.2 Click Create Connection.
  1.3 Select Zoho OAuth under Default Connection.
  1.4 Set the connection name as deskconnection.
  1.5 Under Scope, choose the below scope values:
            Desk.tickets.READ
  1.6 Click Create and Connect.
  1.7 Click Connect and click Accept.
Connection is created successfully.

Create a Workflow Rule
1. Go to Setup, choose Workflows under Automation
2. Under Workflows, click Rules >> Create Rule.

In the Basic Information section,
3. Select Tickets from the drop-down menu under Module.
4. Enter a Rule Name and Description for the rule.
5. If you want to activate the rule right away, select the Active checkbox. Else, create the rule and activate it later.
6. Click Next.
 
In the Execute on section, follow these steps:
7. Select Field Update and select Status from the drop-down menu.  
8. Click Next.
 
9. In the Criteria section, add criteria if required. click Next
10. In the Actions section, click the + icon and select New next to Custom Functions.
11. Enter a Name and Description for the custom function.                                           
12. In the script window, insert the Custom Function given below:
  1. // ----<<<< User Inputs >>>>----
  2. // --- Replace ".com" with appropriate domain extension based on your DC --- 
  3. deskURL = "https://desk.zoho.com";
  4. //Replace with your preferred Email Notification Subject
  5. subject = "Child ticket status update";
  6. //Replace with your preferred Email content for the ticket owner
  7. content = "The Child ticket associated to your parent ticket has a status update";
  8. // ----<<<< Initial Configs >>>>----
  9. logs = Map();
  10. parentTicketId = null;
  11. logs.insert("ticketId":ticketId);
  12. //---------------------------
  13. try 
  14. {
  15. // ---- start your logic from here ----
  16. ticketInfo = invokeurl
  17. [
  18.   url :deskURL + "/api/v1/tickets/" + ticketId
  19.   type :GET
  20.   headers:{"featureFlags":"lookUp"}
  21.   connection:"deskconnection"
  22. ];
  23. logs.insert("ticketInfo":ticketInfo);
  24. if(ticketInfo != null && ticketInfo != "" && ticketInfo.get("relationshipType") == "Child")
  25. {
  26.   parentTicketInfo = ticketInfo.get("parentTicket");
  27.   if(parentTicketInfo != null && parentTicketInfo != "" && parentTicketInfo.containsKey("id"))
  28.   {
  29.   parentTicketId = parentTicketInfo.get("id");
  30.   }
  31. }
  32. if(parentTicketId != null)
  33. {
  34.   parentTicketInfo = invokeurl
  35.   [
  36.   url :deskURL + "/api/v1/tickets/" + parentTicketId + "?include=assignee"
  37.   type :GET
  38.   connection:"deskconnection"
  39.   ];
  40.   logs.insert("parentTicketInfo":parentTicketInfo);
  41.   parentTicketAssigneeInfo = parentTicketInfo.get("assignee");
  42.   if(parentTicketAssigneeInfo != null && parentTicketAssigneeInfo != "" && parentTicketAssigneeInfo.containsKey("email"))
  43.   {
  44.   parentTicketOwnerEmail = parentTicketAssigneeInfo.get("email");
  45.   sendmail
  46.   [
  47.     from :zoho.adminuserid
  48.     to :parentTicketOwnerEmail
  49.     subject :subject
  50.     message :content
  51.   ]
  52.   }
  53. }
  54. }
  55. catch (errorInfo)
  56. {
  57. logs.insert("errorInfo":errorInfo);
  58. }
  59. info "logs: \n" + logs;
  60. if(logs.containKey("errorInfo"))
  61. {
  62. throws "Error happen in the CF execution";
  63. }
Notes
NOTE
a. In Line 2, Replace ".com" with the domain extension based on your Data Center.
b. In Line 5 and 7, insert the Email subject and Email content that has to be sent to the Ticket Owner
13. Click Edit Arguments and include the argument mapping as below: 
  13.1 In the Name field, type ticketId and select Ticket Id under the Tickets Section.
14. Click Done.  
15. Click Save to save the custom function.
16. Click Save again to save the workflow.
Info
If you would like to add a comment to the Parent ticket, please email us at support@zohodesk.com
Our Community Series is here to provide practical tips and solutions. If you have any questions or suggestions, feel free to reach out to us at support@zohodesk.com—we’d love to hear from you!
Until next time,
Regards,
Lydia | Zoho Desk 


    Zoho Campaigns Resources

      Zoho Desk Resources

      • Desk Community Learning Series


      • Digest


      • Functions


      • Meetups


      • Kbase


      • Resources


      • Glossary


      • Desk Marketplace


      • MVP Corner


      • Word of the Day


        • Sticky Posts

        • Zoho Desk Virtual Meetup: US Central, October 5 - 7, 2021

          After the interactive Virtual Meetups in the other regions, we are starting with the US Central and Midwest regions from October 5 to October 7, 2021. The dates for other regions will be announced soon.  At this event, we will explore the topics which
        • Register for Zoho Desk Beta Community

          With the start of the year, we have decided to take a small step in making the life of our customers a little easier. We now have easy access to all our upcoming features and a faster way to request for beta access. We open betas for some of our features
        • Ask the Experts 10: A 5-hour online Q&A on Zoho Desk Best Practices

          Welcome to Zoho Desk's Ask the Experts session! This is a monthly discussion on our  forums; wherein a panel of experts will take on questions  specific to topics related to Zoho Desk. The panel will be available for a 5-hour period and will answer any questions posted here.   Let's begin the year learning some best practices from our experts. In this month's ATE we are opening the floor to questions on how to use Zoho Desk the best way.  If you have a business use case but not sure if Workflow is
        • Share your Zoho Desk story with us!

          Tell us how you use Zoho Desk for your business and inspire others with your story. Be it a simple workflow rule that helps you navigate complex processes or a macro that saves your team a lot of time; share it here and help the community learn and grow with shared knowledge. 
        • Ask the Experts 7: A 5-hour online Q&A on Telephony and Call Module

          Welcome to Ask the Experts session! This is a monthly discussion in forums; each session, a panel of experts will take questions on specific topics related to Zoho Desk. The panel will be available for a 5-hour period and answer any questions posted here. In this month's Ask the Experts, we will take questions on everything related to Telephony and the Call Module in Zoho Desk. We will discuss the following aspects:  Integration with different Telephony vendors Routing calls to agents Converting

        Zoho CRM Plus Resources

          Zoho Books Resources


            Zoho Subscriptions Resources

              Zoho Projects Resources


                Zoho Sprints Resources


                  Zoho Orchestly Resources


                    Zoho Creator Resources


                      Zoho WorkDrive Resources



                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

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

                            Zoho CRM コンテンツ






                              ご検討中の方

                                • Recent Topics

                                • Set another Layout as Standard

                                  We created a few layouts and we want to set another one to standard:
                                • Values in multi pick list are not copied to copied deal

                                  Hi, After a deal is completed in our sales funnel we copy the deal to an automatically created new deal in our project funnel. All fields are copied properly, but only a Multi Pick List is not copied. How can we copy the selected values in this field
                                • Change Last Name to not required in Leads

                                  I would like to upload 500 target companies as leads but I don't yet have contact people for them. Can you enable the option for me to turn this requirement off to need a Second Name? Moderation update (10-Jun-23): As we explore potential solutions for
                                • Creation of Path and subpath

                                  In order to improve the structure of the website for better organization, I would like to consider that when publishing a page, it can be within a section and sub-section. For example, if I have an events option in the menu, I can put past events and
                                • Kaizen #172 - Leveraging the 'crmAPIResponse' Object in Queries

                                  Hello everyone! Welcome back to another week of Kaizen! We released the Queries feature sometime back and hope you have tried it out. A little gist about this feature before we move on to our post. Zoho CRM's Queries feature enables dynamic data retrieval
                                • "We’ve fine-tuned Zoho Inventory..."

                                  Every day I have this message at the top of my screen. I hit refresh everyday and then the next I see it again. What is being "fine-tuned" on a daily basis?
                                • Default Sort Order in Project Tasks View

                                  It should be possible to specify a default sort order (or have the last explicit sort order restored upon reload) for the tasks in the project tasks view. Currently the sort order must be manually re-selected for each sub-group whenever any changes are
                                • BIN Locations

                                  Hi, I’m new to Zoho inventory and unless Im missing something, I cannot find BIN locations anywhere in ‘items’? please tell me it’s there somewhere?!? Thanks
                                • Possible to change Deal Stage via Deluge function in a Workflow automation when there's a Blueprint implemented for the pipeline?

                                  I've configured a Blueprint for my Deals module pipeline. I want to change the Stage value for a Deals module record through a Deluge function in a Workflow Rule, but I get this error message: "Deals record update response = {"code":"RECORD_IN_BLUEPRINT","details":{"api_name":"Stage"},"message":"Stage
                                • How to query for Deals record based on Pipeline?

                                  I want to query for Deals records that matches a specified Pipeline using a Deluge function. When I call zoho.crm.searchRecords("Deals","(Pipeline:equals:" + myPipeline + ")"), I get this error: { code: 'INVALID_QUERY' , details: {...} , message: 'Invalid
                                • Status properties

                                  Hello, I created a new status called "Hold", but I want Zoho to recognize that when a project is on "Hold" the tasks will not appear as open and the deadlines will not show as delinquent. Basically, freezing the project until it's ready to start up again.
                                • Need to change author's name in blog post

                                  My colleague wrote a blog post for our blog but when I put it on our site, the author's name automatically populated as mine. I contacted ZohoSupport and was told to change the Nickname in my profile. Well, I did and then ALL the blog posts were listed as being written by my colleague! Is there any way to simply change one blog post with the correct author's name?
                                • Rich-text fields in Zoho CRM

                                  Hello everyone, We're thrilled to announce an important enhancement that will significantly enhance the readability and formatting capabilities of your information: rich text options for multi-line fields. With this update, you can now enjoy a more versatile
                                • What do the Image Sizes mean in Zoho CRM Email Templates?

                                  Below you can see the image options in email templates: Banner, Fit, Small, Medium, Original, Custom. Can someone from Zoho please share with me: What each is/means? How each will look on desktop AND mobile? How to edit "custom"? If I choose "Custom"
                                • Marketing Automation : Adding to existing Lead Score

                                  I want to be able to add a score to an existing ZMA lead however I can't find the field in the "Fetch Lead" action that contains the existing score. There is an action for Add lead score, but that's not clear if it overwrites the existing value or adds
                                • Zoho developer edition does not work for us

                                  Hi Is anyone else having this problem? I'm signed in with our admin/super user account. When I click on the link on this page: https://www.zoho.com/crm/developer/docs/dev-edition.html I am asked to agree to Terms and Conditions. Clicking Agree to Terms
                                • Option to specify or disable "Idle" times in preferences

                                  It seems strange to me that my Cliq shows me as "Idle" when I'm using the PC and available just because I haven't interacted with Cliq in a while.  I'm far from "Idle" so we're just treating "Idle" and "Available" to mean the same thing.  I'd like to suggest a setting to change the timeout or even disable the automatic "Idle" mode.
                                • Is there a Kanban view of Tasks across all Projects?

                                  As the title indicates, I could use a Kanban view of my Tasks across my Projects. If it's there, I don't see it. If it isn't there, I'd like to submit this as a feature request. Thx.
                                • Create Invoice and Invoice Items from Sales Order via API

                                  Currently, when creating an Invoice associated with a Sales Order via the API, it appears that I must manually include all of the items (line_items) even though they are already part of the Sales Order. My question is this: is it possible to raise an Invoice via the API based on all of the information associated with a Sales Order--such as the  items? In other words, do I always have to manually include the items (line_items) when raising an Invoice via the API when the Invoice is associated with
                                • Stock Count - Does it really work?

                                  We have been trying to use the new Zoho Inventory stock count feature. It seems great at first glance.. ..but what we can't get our heads around is if a count doesn't match you can't simply set up a recount of those that are unmatched, which just seems
                                • Working with keywords

                                  Hello everyone, first time here so I will try to be brief. I am working on my company's data set. I have a table with all the images we have on line. For each image we hava a cell tha contains all keywords related to that image. I would like to explore
                                • Microsoft Phone Link

                                  Does anyone know if you can use Microsoft Phone Link to make calls through Zoho?
                                • Free user licenses across all Portal user types

                                  Greetings everyone, We're here with some exciting and extensive changes to the availability of free user licenses in CRM Portals. This update provides users with access to all Portal user types for free to help them diversify their user licenses and explore
                                • Zoho Books - France

                                  L’équipe de Zoho France reçoit régulièrement des questions sur la conformité de ses applications de finances (Zoho Books/ Zoho Invoice) pour le marché français.   Voici quelques points pour clarifier la question :   Zoho Books est un logiciel de comptabilité
                                • Need warehouse listed on packing slips

                                  We ship from several locations, and have a separate warehouse set up for each location in Zoho. I need the warehouse related to each SO to show up on the packing list. How do I make that happen?
                                • CRM Calendar Sync Not Working

                                  I can't get any meetings where I am a participant to sync with either Bookings or Office 365. It syncs fine when I am the host, but as a participant, it just ignores the event. I have clients booking meetings when agents are in training or OOO or any
                                • Amazon.in FBA multiple warehouse integration with Zoho Inventory

                                  My organisation subscribed to Zoho One looking at the opportunity to integrate Amazon.in with Inventory. But during the configuration, we understood the integration has severe limitations when it involves multiple warehouses in the same Organisation.
                                • A recap of Zoho Sprints 2024

                                • Zoho Form linked to an external OneDrive Account

                                  HI Can you connect to an external users OneDrive account from Zoho forms that is not a user in Zoho? I have a form that is shared externally where a sub contractor needs to receive info (including pictures) to their OneDrive account. When I try to connect
                                • Checklist/ save to onedrive/ a group of items invoicing in Zoho FSM

                                  hi, is there a way to add a specific checklist to any WO without passing eachtime by the model customization? can we save file such picture directly in our sharepoint ak onedrive? is there any way to add a group of item pre defined to make invoicing easier
                                • Pushing Data from One CRM account to another.

                                  We have business partners that want to collaborate through the CRM. Other than pre-planned data migrations what are the options for Zoho Users to transfer data between the accounts. For instance, could I create a webhook that is sent from our CRM and then is picked up in the partner's Flow?
                                • Difference: Linking Module Record vs. Subform Row with lookup

                                  In terms of "database relationship structure", is there is difference between a Linking Module Record and a Subform Row with a lookup? Both have the ability to store data related to a specific connection of two modules, right? Do I miss something? When
                                • Explication sur comment mettre en place des règles d'affichage ou "layout Rules"

                                  J'ai passé plus d'une heure hier avec le support et je n'ai rien compris !! Je suis lecteur assidu des guides (je "RTFM") qui ne sont absolument pas orienté "client" chez Zoho, et je tiens à le rappeler ici . Dans la documentation on m'indique un cas
                                • Kaizen #96 Automatic Mail-Merge Document Creation Using Zoho CRM APIs

                                  Efficient communication and personalized document generation are crucial for maintaining strong customer relationships in your business. Manual document generation can be time-consuming, repetitive and error-prone, decreasing productivity and customer
                                • Automation#26: Notify Parent Ticket Owner on Child Ticket Status Updates

                                  Hello Everyone! Ever found yourself juggling multiple service requests that seem like pieces of a larger puzzle? Managing interconnected tickets can be challenging, especially when updates on child tickets need to be tracked. That’s where our custom function
                                • Zoho Workplace renforce sa sécurité avec l'intégration Zoho Vault

                                  Dans un monde où l’information a une valeur inestimable, la protection des données sensibles n’a jamais été aussi essentielle. Une fuite de données peut non seulement compromettre la réputation d’une entreprise, mais également engendrer des pertes financières
                                • Can the Product Image on the Quote Template be enlarged

                                  Hello, I am editing the Quote Template and added ${Products.Product Image} to the line item and the image comes up but it is very tiny. Is there anyway that you can resize this to be larger? Any help would be great! Thanks
                                • How to sort a data in summary report with Monthly ?

                                  Hi Team, Can any one help me out how to sort a data based on monthly, Month was shuffled based on aliphatic order. i want to sort the below data monthy?
                                • Directly Edit, Filter, and Sort Subforms on the Details Page

                                  Hello everyone, As you know, subforms allow you to associate multiple line items with a single record, greatly enhancing your data organization. For example, a sales order subform neatly lists all products, their quantities, amounts, and other relevant
                                • Create custom rollup summary fields in Zoho CRM

                                  Hello everyone, In Zoho CRM, rollup summary fields have been essential tools for summarizing data across related records and enabling users to gain quick insights without having to jump across modules. Previously, only predefined summary functions were
                                • Next Page