Power of Automation: Streamline status update for linked issues.

Power of Automation: Streamline status update for linked issues.

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

We have complied a gallery of the most frequently solved use cases for Issues custom functions. You can access the same using the steps available in this link.        

Quote
And, today I would like to highlight one of the Gallery custom functions - updateTheStatusOfALinkedIssue.   
 
Use case:-
 
Let us assume there are two issues Issue A and Issue B linked with type "is duplicate of" then the status update done for Issue A will be streamlined to Issue B as well i.e when Issue A status is updated to "In Progress" then Issue B status will automatically be updated to the same status.      

Below is the custom function code for reference. We can associate this code with Business rule available within Issue tracker settings.    
 
Custom function code:-
 
getIssueDetailsUrl = projectsDomain + "/restapi/portal/" + portalId + "/projects/" + bugProjectId + "/bugs/" + bugId + "/";
getBugDetResp = invokeurl
[
url :getIssueDetailsUrl
type :GET
connection:"XXXXXXX"
];
//info getBugDetResp;
currentIssueStatusId = getBugDetResp.get("bugs").get("0").get("status").get("id");
getLinkedIssuesUrl = projectsDomain + "/api/v3/portal/" + portalId + "/projects/" + bugProjectId + "/bugs/" + bugId + "/linkedissues";
getLinkedIssuesResp = invokeurl
[
url :getLinkedIssuesUrl
type :GET
connection:"XXXXXXX"
];
//info getLinkedIssuesResp;
issueLinked = getLinkedIssuesResp.get("issue_linked");
reverseLinkedIssues = getLinkedIssuesResp.get("reverse_linked_issues");
info issueLinked;
if(issueLinked.get("linked_issues") != null)
{
linkedIssues = issueLinked.get("linked_issues");
duplicateOfIssues = linkedIssues.get("is duplicate of");
for each  duplicateIssue in duplicateOfIssues
{
duplicateIssueId = duplicateIssue.get("issue_id");
duplicateIssueStatusId = duplicateIssue.get("status_id");
if(!duplicateIssueStatusId.equals(currentIssueStatusId))
{
updateIssueStatusUrl = projectsDomain + "/restapi/portal/" + portalId + "/projects/" + bugProjectId + "/bugs/" + duplicateIssueId + "/";
updateIssueStatusParam = Map();
updateIssueStatusParam.put("status_id",currentIssueStatusId);
updateStatusResp = invokeurl
[
url :updateIssueStatusUrl
type :POST
parameters:updateIssueStatusParam
connection:"XXXXXXX"
];
info updateStatusResp;
}
}
}
if(issueLinked.get("reverse_linked_issues") != null)
{
linkedIssues = issueLinked.get("reverse_linked_issues");
duplicateOfIssues = linkedIssues.get("is duplicate of");
for each  duplicateIssue in duplicateOfIssues
{
duplicateIssueId = duplicateIssue.get("issue_id");
duplicateIssueStatusId = duplicateIssue.get("status_id");
if(!duplicateIssueStatusId.equals(currentIssueStatusId))
{
updateIssueStatusUrl = projectsDomain + "/restapi/portal/" + portalId + "/projects/" + bugProjectId + "/bugs/" + duplicateIssueId + "/";
updateIssueStatusParam = Map();
updateIssueStatusParam.put("status_id",currentIssueStatusId);
updateStatusResp = invokeurl
[
url :updateIssueStatusUrl
type :POST
parameters:updateIssueStatusParam
connection:"XXXXXXX"
];
info updateStatusResp;
}
}
}

Notes
Make sure to replace XXXXXXX with the Zoho Projects connection link name with scope ZohoProjects.bugs.READ, ZohoProjects.bugs.UPDATE. Check this link to learn how to create the connection. Also, a screenshot of the sample Business rules is attached for reference. 

We hope you found this post useful. If you have any questions, feel free to share them in the comments below.

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      • Sticky Posts

      • Zoho Projects Roadshow, USA - 2024

        Dear Users, We are happy to announce the Zoho Projects Roadshows 2024 in USA. This is an excellent opportunity to learn more about Zoho Projects and gain in-depth knowledge of the advanced features. Our team will also discuss industry specific solutions
      • Project Billing with the Staff Hours Method in Zoho Projects

        The Staff Hours Billing Method in Zoho Projects allows you to bill your clients based on the actual time spent by each team member on a project, at the rate set for each user. This is useful for projects where different skill sets are needed and service
      • Tip 37: Time Log Restriction in Zoho Projects

        Timesheet in Zoho Projects helps you big time in entering log hours for the tasks and issues and approving them. Now, with the new Time Log Restriction option, you can set daily and weekly log hour limits. You can restrict users from entering extra log hours than the permissible limit. The limits are restricted to 24 hours per day and 168 hours per week by default based on business hours. To customize, navigate to Task & Timesheet settings under Portal Configuration in Zoho Projects setup and enable
      • Organize and Track Phases with Phase Custom Views

        Phase Custom Views let you filter and display phases based on specific criteria. This helps you focus on what’s most relevant for you and your team. Filter phases using criteria such as budget, status, and more. Share views with specific users or teams
      • Create Your Own Issue Management System

        Effective issue management is a cornerstone of project success. Every bug or issue, no matter how small, needs to be tracked and resolved in time to maintain project momentum. In this post, we’ll explore how an issue management system in Zoho Projects

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

                                • Spotlight series #25 - Create presentation outlines using Zoho Show's Chrome extension

                                  Hello all, the feature in this month's spotlight is Zoho Show's Chrome extension. The first step to creating a good presentation is outlining your ideas—a crucial process that sets the foundation for everything that follows. But this often involves extensive
                                • We would like to make a separate, internal-only knowledge base. Is it possible to have a public department but not display it in the help center?

                                  It seems like it is not possible to display/hide the knowledge base from the help center per department.  Is there a way to do this? It looks like all department knowledge bases are displayed if they are public, and there is no way to hide one from the help center while keeping it accessible via a permalink URL. For example, lets say I have one KB for Clients and one for Employees.    I want to keep my Clients KB public, and also want the Employees KB to be public, but NOT displayed in the help center.
                                • Noto Sans numericals appearance changed?

                                  Before the update on Christmas the numbers looked a little skinnier and in my opinion it looked really nice. Why did it change?
                                • Option to Re-order from past orders

                                  Customers would like to place a repeat order with the business entity. Currently there is no option to support this and everytime the customer has to check out following the same process. Can a option be given to reorder from the past orders?
                                • Introducing Zia LLM: Zoho’s in-house Generative AI solution for CRM's AI capabilities

                                  Hello everyone, We're excited to announce the launch of our in-house Large Language Model (LLM) by Zia to power our AI offerings. What is LLM? LLM stands for Large Language Model, a powerful AI technology that processes and generates human-like text based
                                • Change email template depending on answer from form

                                  Is it possible to set up the following in Zoho Desk: When a user submits a ticket via the Zoho Help Center's form, they can select an answer from a dropdown field. In this example, the dropdown options are 'Option A' and 'Option B.' If a user selects
                                • Will zoho thrive be integrated with Zoho Books?

                                  title
                                • Using Creator API access tokens in deluge script

                                  I am working on generating download urls for files that are uploaded via a creator form. I want to include these urls in record templates so they can be easily accessed. The goal is to make downloading multiple attachments in a record as quick and easy
                                • Workload Reports

                                  Under Reports > Workload Reports, would it be possible to get Kanban view sorted by Task Owner? Seems like it'd be an easier/ quicker view of how many tasks are assigned to each user and what status they're at. Also gives you more information about the
                                • attributed automatically database section

                                  Hello everyone and happy holidays... here in zoho CRM, I created 3 bases: - Properties (House, apartment ...) - Transactions (Notaries, ...) - Real estate ads I want when the address is identical on these three bases, that in "Properties" the transactions
                                • Remove County field from Customer Address input screen (or allow input to be deleted)

                                  We are in the USA and have just noticed that there is now a County field in the Customer Address input screen (and maybe other areas of Zoho Books, but this is the one affecting us at the moment). County is not important to our business, and in fact we
                                • Custom Module I made shows the records I uploaded are there but they are not showing up.

                                  Here's a screenshot of the module - It shows there are around 2000 records but it says that there aren't any. The module is viewable by administrators and I am on an administrator account so I am not sure why the records aren't showing. Any help would
                                • Display your zoho contact name when they call your mobile number

                                  As per the title If a contact calls the office number, the contacts name shows on mobile as long as I have their contact details registered in my crm. Is there a way that if the contact calls my mobile, their name can be displayed? Currently just their number shows when they call.
                                • Webform & spam

                                  Hi, We set up 2 webform on our website, fowarding the content to Zoho CRM. Since it has been opened up, we are getting lot of spam message (for now about 20 a day). To lower the  amount of false new leads we added the captcha field and new enquieries are send to the Approval Leads list. However we still get some spam. Is there any "anti spam" mechanism built in Zoho CRM, or how is the best way to avoid these kind of spam ? Thanks
                                • Need Help with Journey in Zoho Marketing Automation

                                  Hello everyone, I’m new to Zoho Marketing Automation and am trying to build a journey that triggers based on the contract end date of customers. My goal is to send them an email with an ebook one day before their contract ends. To achieve this, I used
                                • Announcing Trident desktop app for Zoho Mail & Zoho Workplace users

                                  Hello Community, I hope you are doing well and staying safe. As you know, our Mail & workplace teams have been constantly working on adding more value to our offerings to ensure you and your organization continue enjoying your Zoho experience. As part
                                • Kudos to the Zoho Flow Team!

                                  Hi Zoho Flow Team, Way to go on the new design—it looks fantastic! We especially love the festive touch with the Christmas decorations. It's a delightful and thoughtful addition that brings a bit of holiday cheer to the experience. Keep up the amazing
                                • Website not found when trying to unlock Zoho vault with fingerprint(authenticator) in windows 11

                                  Whenever I try to unlock the Zoho vault with fingerprint(authenticator) it shows the Website not found on the server. To replicate the issue follow the below steps: Download the zoho vault extension and login. And now open the zoho vault extension ->
                                • Kaizen #170: FAQs on Notification APIs

                                  Hello all!! Welcome back to another post in the Kaizen series! In this post, we will address the most frequently asked questions about Zoho CRM's Notification APIs from the Zoho CRM Developer Community Forum. Notification API This API allows you to subscribe
                                • Extracting data from cells in zoho sheets for zoho books

                                  I am currently uploading my bank statment in excel format to zoho workdrive. I would like flow to extract certain data and send it to zoho books. Would scripting in zoho flow be able to help me with this? By this I mean should I attempt this in zoho flow
                                • Multiple templates (Settings > Email templates)

                                  Hi Zoho, We would like to have more options to select a template when sending an email in Zohosign. Currently we can only add 1 template per option: Is this possible? Kind regards, Tristan
                                • How to find the number that appears most often in a list (the Mode of a list)

                                  I have a list that contains a list of 5 string values. I want to find which value is repeated most often and place that value into a single line text field Example List1 = Learning,Learning,Shaping,Leading,Learning In List1 the value “Learning” appears
                                • Is Bigin Really Free - Confused by notifications?

                                  I started to look at Bigin as I was under the impression it was free, but as I started using it I kept getting messages that my trial period was X number of days and to upgrade. When I see something like this I assume I am not on a free version of anything
                                • Demande : Épingler automatiquement un commentaire via Deluge

                                  Bonjour, Je suis utilisateur de Zoho Desk et j'ai développé une fonction avec Zoho Deluge permettant d'ajouter automatiquement un type de commentaire à chaque création de ticket. Cependant, j'aimerais pouvoir épingler ces commentaires directement depuis
                                • Sorting and previewing notes

                                  I use the method of sorting notes by edit date in both the desktop and android clients, newest notes on top. When I edit a note on Android and exit it to the notebook, it does not move to the very top. Only when I exit the notebook and enter it again,
                                • Allow Multiple Scheduled Appointments with Zoho Support

                                  Dear Zoho Team, I hope you're doing well. First, thank you for introducing the option to schedule support calls via the Zoho CRM booking link. This has been a fantastic enhancement, eliminating the need for back-and-forth coordination when scheduling
                                • Pivot table with Text values - "Matrix Report"

                                  User Story - As a user, I would like the ability to display textual data in a two-way table, matrix format (text datatypes, not numerical datatypes displayed as a dimension) One major feature missing from the Pivot tables in Zoho Analytics is the ability
                                • Domain not usable

                                  We have not used this domain because the Chrome systems on our office devices are not compatible with your technology. I am sorry if no one has never advised you of this. Please cancel if it has not already been canceled. Ticket# 7526594 Please see
                                • Bigin iOS, macOS and Android app update - File Cabinet

                                  Hello Everyone! In the most recent iOS (v1.7.1) and macOS (v1.5.1) updates of the Bigin app, we have included support for the File Cabinet functionality. You can access this feature as a topping within the web app (bigin.zoho.com) and conveniently use
                                • Power of Automation :: Automatically close the associated tasks once the Issues are closed

                                  Hello Everyone, A Custom Function is a user-written set of code to achieve a specific requirement. Set the required conditions needed as to when to trigger using the Workflow rules (be it Tasks / Project) and associate the custom function to it. We have
                                • Meeting vs Zoom and why we are moving

                                  Dear Meeting team,                                   I want to share my thoughts on Meeting vs Zoom and explain why we are moving back to Zoom for all our video conferencing, even though it is part of our Zoho One Subscription. 1). Video & Audio quality - We see a significant downgrade in video quality when using Meeting vs Zoom, even when using the same internet connections.  Meeting video is blurry and not sharp compared to Zoom.  Audio is also hit and miss on Meeting with frequent drop outs and
                                • booking link that expires

                                  I have a suggestion that is  crucial. When i send booking URL to clients they keep the link and they book appointment whenever they want multiple times. You should give us the Booking URL feature. We should be able to send it and the user can use it only
                                • Accessing Subform Data using getRecordByID

                                  I am getting data from Zoho Creator using deluge zoho.creator.getRecordByID task, from another application. The report contains a subform, and that subform is in the detail view of the report. I do not appear to have any subform data in the JSON response,
                                • Track Contact's Employment/Account History

                                  Thank you in advance for all of your help! Is there a way, within Zoho, to keep track of a contact's employment history? For example, if John Doe is my contact at Account 1, but leaves the company and is hired by Account 2, can I... ...maintain John Doe as a former employee under Account 1, while simultaneously listing him as a current employee of Account 2? ...view John Doe's employment history on his contact page in addition to the account he is currently associated with? I'm sure there is a way
                                • Pre-fill TO and CC fields for Email Templates

                                  This would be a game changer to be able to set either specific email addresses or merge fields based on deal role titles into email templates. Please pass this along to *hopefully* add to future features of Zoho CRM.
                                • Leads and Deals Issue

                                  Hi! Is Zoho having trouble today? I've been experiencing issues today. When I move a deal to closed/won, it previously would require a closing date but today the screen just went blur and the closing date did not pop up. And then under leads, I was trying
                                • QR codes in templates

                                  I'm excited about the new QR code generator. I have included a QR code that contains the record ID setting "${ID}" as input data. In the report detail it works perfectly but when printing it in a template the code is not shown.
                                • How do I hide all leads from Standard users in my CRM ZOHO

                                  I want to configure my crm zoho in such a way that standard users will only see leads owned or assigned to them. How do I go about doing this? I have tried all i could, but nothing...can anyone help me?
                                • Custom view for Milestones

                                  Hi, Just an idea for the future... would it be possible to create custom views for the Milestones view under Work Overview ? I usually need to look at this view filtered by project group but the filter doesn't remain when navigating away. A custom view
                                • How to Implement Time-Based Filters in Zoho Workflows?

                                  Hi everyone, I’m looking for a workaround to implement time-based filters in Zoho workflows. Specifically, I need a workflow to trigger only within certain hours (e.g., between 10:00 AM and 8:00 PM, Sunday to Friday). Currently, Zoho workflows execute
                                • Next Page