How does the Comment text condition work in business rules?

Return to top

16 Comments

  • Paula S da Nuvemshop

    Does the condition for comment text work on messaging? We are using Flowbuilder widget.

    Thanks!

    1
  • Audrey Ann Cipriano
    Zendesk Customer Care

    Hi Paula! The comment text condition does not work for Messaging at this time. I see we have plans for improvements for the Messaging, however, there is no definite timeline yet.

    I recommend following our Announcements (https://support.zendesk.com/hc/en-us/sections/200623776-Announcements) & Release Notes (https://support.zendesk.com/hc/en-us/sections/360004061994-Release-Notes) from time to time to know more about our new features and to receive alerts for all enhancements as they are released. Thank you!

    -1
  • Roman Georgi

    What is the maximum number of words that can be used in one condition?

    0
  • Brett Bowser
    Zendesk Community Manager
    Hey Roman,

    I believe the character limit should be somewhere around 65,535. 
     
    If you need more than that, you'd most likely need to add multiple comment text conditions under Meets any of the following conditions.
     
    I hope this helps!
    0
  • mfg

    How does Zendesk process the difference between 'string' and 'thisstring'? That is to say, if I have a condition that looks for 'string' and one that excludes 'thisstring', will it still return 'string' tickets? If you want to do the opposite - return 'thisstring' but not 'string', will similar conditions work?

    Is there a difference between [word] and [string] in the conditions?

    0
  • Gabriel Manlapig
    Zendesk Customer Care

    Hi Matthew,

    To answer your question, if you have a condition that looks for 'string' and one that excludes 'thisstring', will it still return 'string' tickets? - Yes, the trigger will still return the tickets that have the 'string' word.

    The condition contains / does not contain at least one of the following words checks the words listed individually while the conditions contain / does not contain string checks a group of words that was listed.

    For example, if you have a condition Ticket: Comment text > Contains at least one of the following words > "account delete", this condition will check if the description contains either the word "account" or the word "delete".

    Furthermore, if you have a condition Ticket: Comment text > Contains the following string > "account delete", this condition will check if the description contains the whole phrase "account delete".

    I hope this helps! Thank you! 

    0
  • Sydney Neubauer
    Zendesk Luminary

    Is there a way to only have the trigger fire on comment text and not subject?

    BG: We have a workflow that should only fire if a certain word is mentioned in the comment and not the subject. My thought is to have another condition that Subject text doesn't contain the selected word for it to fire. 

    This workflow would only be for updates and not creation if that matters

    1
  • Gabriel Manlapig
    Zendesk Customer Care
    Hi Sydney,
     
    At the moment, Trigger condition "Comment text" looks at both the subject text and the comment description text. Since Trigger conditions have the Subject text, you can create another that will exclude a specific subject line and tag it with a unique text that the other trigger will look for before it can run. 

    I hope this helps! Thank you!
     
    0
  • Farnaz Moghaddam

    Hello,

    Is there a way to have the condition on a group of text like when using '*' in text searches? (*can't*ship to*PO box*)

    For instance, I have the following conditions, but it won't work if the text contains other wording or miss a word in between like 'can't ship to PO Box'.

     

    0
  • Zsa Trias
    Zendesk Customer Care

    Hello Farnaz,

    We do not use wildcard characters (*) in the comment text in triggers. 
    If the trigger should work even if there were texts in place of the asterisk in (*can't*ship to*PO box*), but all those words/strings should be present in the ticket, you may want to separate them and place them all in Meet [all] of the following conditions. For example: 

    While for the other conditions from your screenshot, you may have to create a separate trigger for them if those conditions could also be met in order for the actions to be applied to the ticket. 

    0
  • Mads Hansen

    Hi, 

    Is the Comment text condition case sensitive?

    Eg.
    Will it fire on Hello in a ticket, if hello is written in the condition?
    Or do we need to add both Hello and hello when we set up the rules? 

     

    0
  • Gabriel Manlapig
    Zendesk Customer Care
    Hi Mads, 
     
    This condition is not case sensitive. You can use any of the following operators:
    • Contains at least one of the following words. Use a space (not a comma) to separate multiple words.
    • Contains none of the following words. Use a space (not a comma) to separate multiple words.
    • Contains the following string
    • Contains not the following string
    For more information, please see this article: Trigger conditions and actions reference
     
    I hope that helps!
     
    1
  • Gil Atlan

    Can you set the trigger to only fire when there's no comment? i.e. ""?

    0
  • Gabriel Manlapig
    Zendesk Customer Care
    Hi Gil,
     
    We don't have the "Comment > Is not > Present" trigger conditions at the moment. I've taken a look and found that other users are discussing similar needs here:
     
    Is Not operator for Comment condition
     
    You can up-vote that original post and add your detailed use-case to the conversation. Threads with a high level of engagement ultimately get flagged for product managers to review when they go through roadmap planning. 
     
    Specific examples, details about impact, and how you currently handle things are the most helpful things to share to help our product teams understand the full scope of the need when working on solutions.
     
    We truly value customer feedback and your voice and votes in the product feedback topics in the community help influence future Zendesk functionality. Thank you!
     
    0
  • Tatiana Christensen

    Can it be, that comment text condition trigger only words for public comments? I've been testing with internal note without luck and just realised that this might be the fact. 

    Can you please confirm?

    0
  • Joyce
    Zendesk Customer Care
    Hello Tatiana,
     
    Yes, you can build your trigger to only fire when a comment text is present on a public reply and not for internal comments. To configure this, add the Comment > is > Public condition in your trigger. Here are the example conditions you can use as a reference:

     
    0

Please sign in to leave a comment.

Powered by Zendesk