Zendesk Support placeholders reference

Have more questions? Submit a request

110 Comments

  • Igal Dar

    I found that ticket.latest_comment_rich works only if Rich Text editing is disabled.

    This is disappointing. I wish someone would explain the reasoning behind this.

    1
  • Daniel Petersson

    Hey!

    Is there any way to insert or show from which group the ticket was sent before the current group?

    For reference we have five supportgroups but only one second line support which means that when the second line support receives the ticket they have to check the details of the ticket to see how the groups have changed instead of having this visible in the internal note as a "{{ticket.former_group.name}}" or similar.

    If we use the {{ticket.group.name}} it will only show the current group which is the name of the second line support. And we don't want to insert {{ticket.group.name}} in the public comment to our customer or as a second internal note as this will take extra time.

    0
  • Andrew J

    @daniel - the only way I could think of this happening is if you create a custom field for this to be populated with when the ticket is first assigned to a group.  This would then follow the ticket around and is available in placeholders.  Populating it would require using a http target I believe.

    I tried using a tag instead directly from a trigger, but you cannot use a placeholder to populate a tag (just tested that!)

    0
  • Allen

    It looks like {{ticket.latest_public_comment_formatted}} doesn't work anymore? I was using this for our macro then suddenly, it stops working and i can't find it on the list anymore. Was this phased out?

    0
  • Crawford Philleo

    Hey there,

     

    Is there a placeholder for `satisfaction.current_rating` that is not text-based? I want to use this in some liquid templating, but worried this value will change based on a requester's locale/language setting.

     

    Thanks!

    0
  • David Bender

    I'm a bit of a newbie so this may be a dumb question, but I need to include the comment author name in a webhook. I have the latest comment ({{ticket.latest_comment}}) but I can't seem to figure out how to get the author of the comment. I've tried {{ticket.comment_author}} and other combinations.

     

    0
  • Mindaugas Verkys

    David,
    What about {{current_user.name}}

    0
  • Charles Wood

    Note that current_user will not always be the comment author (for instance, if the comment is being created by the rest API).

    If you only need the name, I think you would do "ticket.latest_comment.author.name". See the Comment Data section for more information, especially under "ticket.comments".

    0
  • David Bender

    Thanks Charles! I only needed the name to send with new comments over to our Devs in Clubhouse so that worked great.

    0
  • Adam Weiss

    How can I make

    #status on hold

    work?

    0
  • Heather R

    @Adam, I don't think "#status on hold" is one of the options, but I wish it was! 

    0
  • Graeme Carmichael

    Adam

    Are you looking to update a ticket status using email?

    Although it does not appear to be documented, as an agent, as I was able to change the ticket status using:

    #hold

     

     

    0
  • Adam Weiss

    @Graeme -- thank you!

    0
  • Pawel Malon

    What about placeholders on different than "ticket" root level? i.e.: I need to create a trigger that reacts on a change of an "organization" property and this part works fine, but in my webhook notification I want to include infomation about at least id of that organization, so would {{organization.id}} work in this case (it seems to not work as my trigger is not invoked when I put a placeholder like that)? 

    0
  • Brett - Community Manager

    Hey Pawel,

    Can you try using {{ticket.requester.organization.id}} instead and see if that gets you the data you're looking for? 

    Let me know!

    0
  • D Hill

    I'm trying to get the organization id to show up in the API call I have in an inline script in the requests_page.hbs template like so:

    mycompany.zendesk.com/api/v2/organizations/{{ticket.requester.organization.id}}/tickets.json

    I want to retrieve only the tickets that are from the organization where the current user belongs. I have also tried:

    mycompany.zendesk.com/api/v2/organizations/{{current_user.organization.id}}/tickets.json

    Neither of these work. I get the error message:

    "not possible to access `ticket` in `ticket.requester.organization.id`"

    Does anyone know how I can do this? Do I need to instantiate the Liquid Code somehow to trigger the placeholder to work? If I just use:

    mycompany.zendesk.com/api/v2/tickets.json

    This works fine, but it pulls every, single ticket. I want it to be specific to the requester's organization.

    0
  • Loc Nguyen

    Hi all, I'm currently using a web hook to post ticket information to a slack channel via HTTP extension functionality.

    However the placeholder: {{ticket.description}} always includes the customers name in it (which we don't want to include/broadcast on slack) - is there a placeholder that only gives us the body of the email?

    At the moment, it's coming back with the following:

    --------------------------

    !*** Mr ABC was not signed in when this comment was submitted. Learn more ***!

    Mr ABC, Jun 28, 09:39

    Feedback here.

    --------------------------

    I just want the details that are bolded/or redact the customer name before posting.

    0
  • Chris Stock

    Is it possible to get the {{ticket.comments_formatted}} without the ticket description?

    0
  • Brett - Community Manager

    Hi Chris,

    There's no placeholder available that would show the full comment history and exclude the ticket description at this time. The closest you could get would be the ticket.latest_comment_formatted. However, if you want the full comment history in the update then that may not be the option you're looking for.

    Let me know if you have any other questions!

    0
  • Irene Yung

    Hi,

    I would like to have a placeholder to reply the last update end-user (e.g. The ticket was original submitted by User A, then User B, C, D joined in, and User C is the last one to reply).

    {{current_user}} seems help on this. However, it cannot identify the last updater is agent or an end-user. If the last reply was an agent, it cannot ignore and jump to the send last reply (i.e. the last end-user reply) automatically.

    If any ways we can configure the placeholder to fix with this need?

    Since we often need to reply the last requester to get the information or close the ticket, the placeholder will greatly help the agents' job.

    Thanks in advance!

    0

Please sign in to leave a comment.

Powered by Zendesk