Zendesk Support placeholders are containers for dynamically generated ticket, user, and custom data. The format is a data reference contained within double curly brackets. Since you can also access ticket, user, and custom data when defining programming logic, it may be helpful to think beyond placeholders and think instead of data objects and their properties that can be used for either purpose.
There are two primary data objects in Zendesk Support: Ticket and User. Each has its own set of properties; the User object, for example, contains user properties such as name and email. In addition to these two data objects, there are associated data objects. For tickets, there are the Comment and Satisfaction Rating objects. For users, there are the Organization and Agent objects. There are also custom objects, which are defined by users and can be associated with tickets, users, and other Zendesk objects.
Although placeholders can be in HTML format, when a placeholder is sent to a URL target or webhook, unformatted text is used to render the placeholder, not HTML. Also, placeholders won't work within code blocks.
Support includes inborn system rules that suppress placeholders in ticket triggers in certain situations. Inborn system rules are rules that you cannot change, modify, or override, which dictate the default behavior of Support. These rules may sometimes make it seem like placeholders in ticket triggers failed to work, but this isn’t a mistake. These rules protect you because they prevent spammers from using your account to distribute spam messages. For more information, see Understanding placeholder suppression rules.
This article categorizes the placeholders by the data they display. When you specify placeholders, remember they are case sensitive.
- User data
- Organization data
- Agent data
- Ticket data
- Comment data
- Satisfaction rating data
- Custom object data
Related articles:
User data
- ticket.requester, who is the person who requested the ticket
- ticket.assignee, who is the agent assigned to the ticket
- ticket.submitter, who is either the user who submitted the request or the agent that opened the ticket on behalf of the requester
- current_user, who is the user currently updating the ticket (an end user, agent, or Zendesk as the system user)
This means that most of the user data listed in the following table can be returned for each type of user (for example, {{ticket.submitter.name}}, {{current_user.name}}, and so on).
Properties/placeholders | Description |
---|---|
user.name
Important: Remember to replace user with one of the user
types shown above (for example, ticket.requester).
|
The user's full name. |
user.first_name | The user's first name. |
user.last_name | The user's last name. |
user.email | The user's email address. |
user.language | The user's language preference. |
user.phone | The user's telephone number. |
user.external_id | The user's external ID (if one exists). Optional for accounts that have enabled enterprise single sign-on using JWT or SAML. |
user.details | The user's details. |
user.notes | The user's notes. |
user.time_zone | The user's time zone. |
user.role | The user's role (Admin, Agent, or End user). |
user.extended_role | When using Support Enterprise agent roles, this returns the name of the
agent's Enterprise role. These are the predefined roles:
If you've created custom agent roles, those role names are returned. If you're not an Enterprise account, using this placeholder returns 'Agent' for all agent users and 'End user' for all end users. For more information about custom agent roles, see Creating custom agent roles and assigning agents. |
user.id | The user's ID. |
user.locale | The user's locale (for example: en-US). |
user.signature | The agent's signature. Only agents have signatures. |
user.organization... | See Organization data below. |
user.tags | Tags. See Adding tags to users and organizations. |
user.custom_fields.<field_key> | Property/placeholder format for the value of a custom user fields (except drop-down fields). For example, {{ticket.requester.custom_fields.my_custom_field}}. See Adding custom fields to users. |
user.custom_fields.<field_key>.id | The ID of the target record in a lookup relationship field. |
user.custom_fields.<field_key>.title | Property/placeholder format for the value of a custom user drop-down field. For example, {{ticket.requester.custom_fields.manager_for_approval.title}}. See Adding custom fields to users. |
About user name placeholders
The behavior of the first name and last name placeholders depends on the formatting of the name on the profile. For example, if you use the name Dutch van der Linde, the placeholder user.last_name will show 'Linde'. If you use the name van der Linde, Dutch on the profile, then the placeholder user.last_name will show 'van der Linde'.
Additionally, in Japan, the first name placeholder refers to the user's last name and the last name placeholder refers to the user's first name.
Organization data
Each type of user can be added to an organization. An organization contains the following data properties.
Properties/placeholders | Description |
---|---|
user.organization.id
Important: Remember to replace user with one of the user
types shown below.
|
The ID of the organization that the user is assigned to. |
user.organization.name | The name of the organization that the user is assigned to. |
user.organization.is_shared | True or False. Indicates if the organization is a shared organization. |
user.organization.is_shared_comments | True or False. Indicates if the organization allows users to add comments to other user's tickets. |
user.organization.details | Details about the organization. |
user.organization.notes | Notes about the organization. |
user.organization.tags | Tags. See Adding tags to users and organizations. |
- {{ticket.organization.name}}, which is the ticket requester's organization
- {{ticket.requester.organization.name}}, which the same as {{ticket.organization.name}} (the requester)
- {{current_user.organization.name}}, who is the user currently updating the ticket (an end user or agent)
- {{ticket.assignee.organization.name}}, who is the agent assigned to the ticket
- {{ticket.submitter.organization.name}}, who is either the user who submitted the request or the agent that opened the ticket on behalf of the requester
Agent data
You can use the following placeholders in agent signatures only. For information on agent signatures, see Adding an agent signature to ticket email notifications.
Properties/placeholders | Description |
---|---|
agent.name | The agent's full name (or alias, if present). |
agent.first_name | The agent's first name. |
agent.last_name | The agent's last name. |
agent.role | The agent's role. |
agent.signature | The agent's signature. |
agent.email | The agent's email address. |
agent.phone | The agent's phone number. |
agent.organization | The agent's organization. |
agent.language | The agent's language. |
agent.time_zone | The agent's time zone. |
Ticket data
Zendesk Support tickets contain the following data properties.
Properties/placeholders | Description |
---|---|
ticket.account | The Zendesk account name. |
ticket.assignee.name | Ticket assignee full name (if any). See User data above. |
ticket.brand.name | The ticket's assigned brand name. |
ticket.cc_names | Returns the names CCs on the ticket.
Note: If you are using the new CCs and followers experience and you are
adding or updating your placeholders, we recommend using
ticket.email_cc_names instead of
tickets.cc_names . They do the same thing.If you want to return the email addresses of the people CC'd on the message, you can use this Liquid code:
|
ticket.email_cc_names |
With the new CCs and followers experience, returns the names of CCs on the ticket. With the old CCs experience, returns empty.
Note: If you are using the new CCs and follower experience and you are adding or
updating your placeholders, we recommend using
ticket.email_cc_names instead of
tickets.cc_names . They do the same thing. |
ticket.follower_names | With the new CCs and followers experience, returns the names of followers. With the old CCs experience, returns empty. |
ticket.follower_reply_type_message | With the new CCs and followers experience,
indicates what type of comment (public or private) triggered the notification.
Causes the phrase "Reply to this email to add a comment to the request" or "Reply
to this email to add an internal note to the request" to appear in the email
notification (see Customizing default email notifications for CCs and
followers). With the old CCs experience, returns empty. |
ticket.created_at | Date the ticket was created (for example, May 18, 2014).
Note: The year is
not included if the ticket was created in the current year.
|
ticket.created_at_with_timestamp | Time the ticket was created expressed as an iso8601 format date/time. Example: 2013-12-12T05:35Z, which translates to December 12th, 2013 at 05:35am UTC. |
ticket.created_at_with_time | Date and time the ticket was created. For example, February 10, 14:29. |
ticket.current_holiday_name | If the placeholder is used outside of a holiday, it is null. If it is used within a holiday, the holiday's name is displayed. If you've set up multiple schedules, this placeholder respects the list of holidays set in the schedule applied to the ticket. |
ticket.description | The ticket description. This includes the agent's name, the comment date, and
the ticket description (the first comment).
Note: If the
subject field is empty or not visible to the requester, then this first comment
will be used and sent to the requester. This is true for private tickets as
well.
|
ticket.due_date | The ticket due date (relevant for tickets of type Task). The format is: May-18. |
ticket.due_date_with_timestamp | The ticket due date (relevant for tickets of type Task) expressed as an iso8601 format date/time. Example: 2013-12-12T05:35+0100 which translates to December 12th, 2013 at 06:35am UTC+1. |
ticket.external_id | The external ticket ID (if one exists). |
ticket.encoded_id | The encoded ID is used for threading incoming email replies into existing tickets. |
ticket.group.name | The group assigned to the ticket. |
ticket.id | The ticket ID. #{{ticket.id}} creates a clickable link.
{{ticket.id}} renders the ticket number in plain text. |
ticket.in_business_hours | True or False. True if the ticket update is during business hours. See Setting your business hours. |
ticket.link | Full URL path to ticket. |
ticket.organization.custom_fields.<field_key> | Property/placeholder format for custom organization fields. See Adding custom fields to organizations. |
ticket.organization.custom_fields.<field_key>.id | The ID of the target record in a lookup relationship field. |
ticket.organization.custom_fields.<field_key>.title | Property/placeholder format for the value of a custom organization drop-down field. See Adding custom fields to organizations |
ticket.organization.external_id | External ID of the ticket requester's organization. |
ticket.organization.id | The ID of the ticket requester's organization. |
ticket.organization.name | See Organization data above. |
ticket.priority | The ticket priority (Low, Normal, High, Urgent). |
ticket.requester.first_name | Ticket requester first name. If you have an open Zendesk Support instance, this placeholder can be a target for spam in first-reply triggers. See Using Zendesk Support-specific features to combat spam. |
ticket.requester.last_name | Ticket requester last name. If you have an open Zendesk Support instance, this placeholder can be a target for spam in first-reply triggers. See Using Zendesk Support-specific features to combat spam. |
ticket.requester.name | Ticket requester full name. If you have an open Zendesk Support instance, this placeholder can be a target for spam in first-reply triggers. See Using Zendesk Support-specific features to combat spam. |
ticket.requester.email | Ticket requester email address. |
ticket.requester.custom_fields.<field_key> | Property/placeholder format for custom user fields. For example, {{ticket.requester.custom_fields.my_custom_field}}. See Adding custom fields to users. |
ticket.requester.custom_fields.<field_key>.id | The ID of the target record in a lookup relationship field. |
ticket.requester.custom_fields.<field_key>.title | Property/placeholder format for the value of a custom user drop-down field. For example, {{ticket.requester.custom_fields.manager_for_approval.title}}. See Adding custom fields to organizations. |
ticket.requester.details | The contents of the Details field on the requester’s user profile. |
ticket.status | The standard ticket status (New, Open, Pending, On-hold, Solved,
Closed).
Note: If you've activated custom ticket statuses, this
placeholder displays the same value as
{{ticket.status_category}} . |
ticket.status_category | If custom ticket statuses are activated, returns the status category the ticket's status belongs to (New, Open, Pending, On-hold, Solved, Closed). Learn more about ticket status categories. |
ticket.custom_status | If custom ticket statuses are activated, returns the custom ticket status. |
ticket.tags | All of the tags attached to the ticket. |
ticket.ticket_field_<field ID number> | Property/placeholder format for custom fields. For example, {{ticket.ticket_field_123}}. See Placeholders for custom fields. |
ticket.ticket_field_<field ID number>.id | The ID of the target record in a lookup relationship field. |
ticket.ticket_field_option_title_<field ID number> | Property/placeholder format for the value of a dropdown custom field. For example, {{ticket.ticket_field_option_title_456}}. See Placeholders for custom fields. |
ticket.ticket_form | Form name for end users. |
ticket.ticket_type | Ticket type (Question, Incident, Problem, Task). If the ticket type is not specified, this placeholder returns "Ticket". |
ticket.title | The ticket subject. End users may see different text in this field. For
troubleshooting information about this placeholder, see The ticket title placeholder displays first comment instead of
the subject and Why does the subject line in my email notifications say
"Untitled ticket". If you have an open Zendesk Support instance, this placeholder can be a target for spam in first-reply triggers. See Using Zendesk Support-specific features to combat spam. |
ticket.updated_at | Date the ticket was last updated (for example, May18). |
ticket.updated_at_with_time | Time and date the ticket was last updated. For example, February 10, 14:29. |
ticket.updated_at_with_timestamp | Time the ticket was last updated expressed as an iso8601 format date/time. Example: 2013-12-12T05:35Z, which translates to December 12th, 2013 at 05:35am UTC. |
ticket.url | The full URL path to the ticket (excluding "http://"). |
ticket.verbatim_description | The plain text value of the ticket description (the first comment). If Include attachments in email is enabled, attachments are
included.
Note: This placeholder cannot be used to send attachments in a webhook.
|
ticket.via | The source type of the ticket (Web form, Mail, etc.). |
account.incoming_phone_number_ID | Zendesk Talk inbound phone number. For example,{{account.incoming_phone_number_123}}. |
Comment data
- HTML comment placeholders are used for simplified email threading in email applications such as Gmail. For best results, they should not be used with other comment placeholders. See Understanding simplified email threading and Implementing simplified email threading for email applications.
-
Standard comment
placeholders allow you to use liquid hashes to choose what you want to display, and return a
collection of comment and attachment data. For example, you can set up templates to iterate over comments using
{{ticket.comments}}
. -
Formatted comment
placeholders allow you to return preformatted, rendered HTML
representations of the standard placeholders, but without a large degree of
customization. They simply return comments in predefined formats. For example,
{{ticket.comments_formatted}}
returns a chunk of rendered HTML. The ticket comments will include dates, author, the author’s avatar, and the like. - Rich text comment placeholders allow you to use rich text in your customized template (as with the formatted object placeholders) without being restricted to the predefined formatting rules, so you can have more control over the look and feel of your notifications. Rich text objects allow inclusion of attachments only if Include attachments in email is enabled.
- Agents who are assigned to or following the ticket receive both public comments and internal notes. End users receive only public comments.
- If you have CCs enabled, CCs (including agent CCs) receive email notifications only for public comments. See Understanding how email notifications are sent to CCs by default.
- If you use comment placeholders in side conversations, only public comments are included. Comment placeholders used in side conversations don't return internal notes.
Properties/placeholders | Description |
---|---|
ticket.latest_comment_html | The most recent comment including any attachments. Agents receive the most recent public or private comment. End users receive the most recent public comment. |
ticket.latest_public_comment_html | The most recent public comment, excluding any attachments. |
Properties/placeholders | Description |
---|---|
ticket.comments | Used as a placeholder, {{ticket.comments}} displays all the comments in a
ticket in unformatted text. The ticket.comments placeholder also serves as a collection for comment and attachment details. You can access the following data using Liquid markup:
For an example of accessing this data in business rules, see Customizing the format and placement of text in comments and email notifications.
Note: This same comment data collection is available when using the
ticket.public_comments, ticket.latest_comment, and
ticket.latest_public_comment placeholders.
|
ticket.public_comments | All public comments, most recent first. Unformatted text. |
ticket.latest_comment | The most recent comment. Unformatted text. Does not include attachments, unless Include attachments in email is enabled. To return attachments, use ticket.latest_comment_formatted. |
ticket.latest_public_comment | The most recent public comment. Unformatted text. |
Properties/placeholders | Description |
---|---|
ticket.comments_formatted | All comments, most recent first. |
ticket.public_comments_formatted | All public comments, most recent first. |
ticket.latest_comment_formatted | The most recent comment including any attachments. |
ticket.latest_public_comment_formatted | The most recent public comment. |
Properties/placeholders | Description |
---|---|
ticket.latest_comment_rich |
The most recent comment. Rich text formatting. If Include attachments in email is enabled, attachments are included. |
ticket.latest_public_comment_rich | The most recent public comment. Rich text formatting. If Include attachments in email is enabled, attachments are included. |
Satisfaction rating data
On Suite Growth and above or Support Professional and Enterprise, the following data properties are available for customer satisfaction rating for email and messaging.
This table lists both current and legacy CSAT placeholders. Legacy placeholders work only for the legacy CSAT experience. The updated CSAT option lets you customize the CSAT question, rating scale, and rating labels.
Properties | Description |
---|---|
satisfaction.survey_section | A block of text in the CSAT email directing users to complete the CSAT survey. |
satisfaction.survey_url | The URL for customers to rate their support experience. |
satisfaction.rating_section (Legacy CSAT) |
A formatted block of text prompting the user to rate satisfaction. |
satisfaction.rating_url (Legacy CSAT) |
A URL to rate the support. |
satisfaction.current_rating (Legacy CSAT) |
The text of the current satisfaction rating (e.g. "Good, I am satisfied"). |
satisfaction.positive_rating_url (Legacy CSAT) |
A URL to rate the support positively. |
satisfaction.negative_rating_url (Legacy CSAT) |
A URL to rate the support negatively. |
satisfaction.current_comment (Legacy CSAT) |
The comment that the user added when rating the ticket. |
Custom object data
Properties | Description |
---|---|
custom_objects.<object_key>.custom_fields.<field_key> | The value of a custom object's field. |
custom_objects.<object_key>.custom_fields.<field_key>.title | The value of a drop-down field. |
custom_objects.<object_key>.custom_fields.<field_key>.id | The ID of the target object in a lookup relationship field. |
custom_objects.<object_key>.custom_fields.<field_key>.name | The name of the lookup relationship field. |
custom_objects.<object_key>.external_id | The external ID of the custom object record. |
custom_objects.<object_key>.id | The ID of the custom object record. |
custom_objects.<object_key>.name | The name of the custom object record. |
169 comments
Tony Williamson
Is it possible to create a custom place holder somehow? We are a multibrand site and want to change the closing salutation in a macro based on the Brand assigned
Thank you for choosing {{ticket.brand.name}}, {{ticket.brand.slogan}} with the custom created markup slogan being different depending on the brand selected...
1
David Coleman
You could test ticket.brand.name value and then compute the slogan. This code isn't exact, but should get you started. Change the field to test and swap greeting for slogan and you are on your way...
{% if ticket.ticket_field_47199008 != blank %}
{% assign greeting = 'your order' %}
{% else %}
{% assign greeting = 'reaching out' %}
{% endif %}
Hi {{ticket.requester.first_name}},
Thanks so much for {{greeting}}! {% if ticket.ticket_field_47199008 != blank %}[[I'm so sorry...]]{% endif %}
[[Your message here]]
Please let me know if you have any other questions!
Thanks,
{{current_user.first_name}}
5
Tony Williamson
Thanks David - this is useful and gives me some ideas
1
Arne Cools
Is there a placeholder for 'update_type' -> 'change' or 'create?
0
Brett Bowser
Hey Arne,
I did some digging on my end and it doesn't look like this placeholder is available at this time. I would recommend creating a feedback post in our Support Feedback topic and share your use-case for our product managers to review.
Thanks!
0
Arne Cools
Thanks for looking, I found another solution so I wont need that after al.
I found serveral other problems with the placeholders unfortunatly.
- "comment.created_at_with_time" doesnt contain 'seconds' accuracy.
- There doenst seem to be way to get the 'via' or 'via_id' property from a comment.
Oddly enough when I print 'ticket.comments', I get a strangely formatted string of all the comments where via_id property is present & time_created DOES contain a timestamp with 'seconds' accuracy. But when I loop over the comments I'm unable to get those properties:
Looking like this: '[#<Comment id: 713910160240, account_id: 10577763, parent_id: 713910160000, ticket_id: 370169376299, author_id: 378252941419, created_at: "2021-01-29 16:03:06", via_id: 5, via_reference_id: nil, is_public: true, type: "Comment", value: "<p>test</p>#", value_previous: "rich", value_reference: nil, updated_at: "2021-01-29 16:03:06", notification_sent_at: nil>, [...omitted...] #<Comment id ...'
- ticket.status & ticket.priority return a translated and capitalized version, which is also not ideal
2
Dave Dyson
Hi Arne,
Similar to Brett's response above, your feedback on comment.create_at_with_time, via/via_id. ticket.status and ticket.priority will be best served by creating a post in our Support Feedback forum. We welcome your feedback, and we've provided a guide to creating an effective post here: Product feedback guidelines & how to write a good feedback post
As for the tickets.comments placeholder, that's functioning as designed - it allows you to use Liquid Markup to parse and format the comments in a customizable way: see Using Liquid markup to customize the formatting and placement of text in comments and email notifications. Hope that helps clarify things!
0
Pedro Coelho
Hi Dave,
I've been struggling with the same problems as Arne: the `created_at_with_time` field's usefulness would be greatly improved if the field had at least second level precision, instead of minute. The `created_at_with_timestamp` placeholder exists for the ticket, so it's just a matter of porting it to the comment model as well. That would definitely solve my problem at least.
Another thing that would be immensely useful would be being able to list the ticket's custom fields without prior knowledge about what fields exist, similar to calling the `/api/v2/tickets` endpoint.
As for the weirdness in the `tickets.comments`: that looks like the standard output from printing a Ruby on Rails model (or using the inspect method). While I certainly can't argue about whether it is intentional or not, it is not usually a good practice, as it may lead to a couple of security problems down the road (without extra configuration, if you add extra fields to the Comment model they will show up in that representation whether you want it or not).
1
Anaïs France
Hi !
I'm confused about which URL the placeholders {{ticket.link}} and #{{ticket.id}} point to. It looks like in some case, they render the URL in the help center (/hc/requests) and sometime the ticket's URL in the agent's space (/agent/tickets/) : is it agent's space in a notification to an agent and the help center's URL when sent to the requester and CCs ?
Which placeholder shall I use to get the link to the help center (/hc/requests) to communicate to an external user in a trigger/automation/macro/dynamic content ?
I would like to put the link to the request in the help center in a notification to the assignee (by automation), which can be transfered to end-users.
1
Madison Hoffman
Hi Anaïs! Your understanding is accurate. {{ticket.link}} will show you a full URL:
-To agents, it will show yoursubdomain.zendesk.com/agent/tickets/123
-To end users, it will show yoursubdomain.zendesk.com/hc/requests/123
{{ticket.id}} only renders the ID itself and is only a clickable URL for agents. So it sounds like you'll want to use {{ticket.link}}!
1
Anaïs France
Thanks for your confirmation, Madison.
I was imprecise in my message as to {{ticket.id}}, but I was refering to the formula #{{ticket.id}} which apparently behaves the same way as {{ticket.link}}, that is, according to the recipient/target, it renders a link to agent/tickets/ or hc/requests/.
So, using {{ticket.id}}, I could write the URL to the end user’s request page - hc/requests/{{ticket.id}}, but since I can’t put html code in the message area, there’s no way of sending the link to this page to an agent (I'm thinking of a message via automation) ?
1
Jonathan Brown
Is there a way to get the id of the linked ticket (problem ticket) as a placeholder?
feels like an oversite if we can access custom fields but not an existing zendesk field to get data
1
Vikki Keeble
I've been tasked with seeing if it's possible to change the feedback to read
What went well? (in green)
Even better if? (in orange)
What did not go so well? (in red)
Is it possible for me to do with the current place holders? Or would custom HTML need to be written?
0
Grzegorz
Hi Jonathan!
At the moment, there's no placeholder that would pull in the ticket details of the linked problem ticket. However, it may be possible to use our API to pull that information into the email notification itself. Please take a look at our API documentation where you'll find further information on the endpoints that your developers could use: https://developer.zendesk.com/rest_api/docs/support/tickets#listing-ticket-problems In terms of how you would leverage the API to pull that information into the ticket, please remember that it's down to your own custom workflow.
Hi Vikki!
If you'd like to add the styling to your text, the best way to make such changes would be by either using the Markdown or the HTML code. I have included a link to our Help Centre documentation so that you can check where you can use either of these: https://support.zendesk.com/hc/en-us/articles/224594167 Since support placeholders return just a plain text, you would need to wrap them around a code to add some formatting.
0
Pierre Granger
Hello there,
Is there any way to display previous values for some fields ?
Like for example, {{ticket.priority}} vs {{ticket.previousPriority}}, so we can highlight what has actually changed in the last edition ?
Many times we reveice mails but have no idea what have changed on a ticket, so we have to go on ZD to find out.
Thanks a lot for your help !
0
Dave Dyson
Hi Pierre -
I'm afraid going to the agent interface is indeed the best way for an agent to see how fields have changed, as placeholders only show current values.
I'd highly recommend that you add your use case to this thread in our Feedback on Support topic: Feature Request: Add a placeholder about the previous status before the change is made. Our product team is especially interested in hearing about the details of this problem: the business impact, frequency of impact, who is impacted, and what it costs in time and effort to work around it.
Thanks!
0
Hugo
Hi All,
I have a question about {{satisfaction.rating_section}}
is it possible to modify the language of the section? It's only available in English (Good I'm satisfied vs I'm not)
Second question: how can I use this
and put it as a hyperlink? (ctrl+K doesn't work here)
thanks all
0
Rowan Seymour
Hi
We've been using an HTTP target to notify an external system of ticket status changes `{{ticket.status}}` but we noticed that if the agent changes their UI language in Zendesk, that value changes.. "Resolved", "Resolvido" etc.
Is there any language independent way to get the ticket status?
-Rowan
1
Gab Guinto
Hi Hugo,
You can use dynamic content to translate the satisfaction rating emails based on user language. You can check this article: Are CSAT surveys multi-lingual?
About the positive/negative rating links – you can use HTML tags to create hyperlinks with these placeholders. Example:Hope this helps. Thanks Hugo!
1
Gab Guinto
Hi Rowan,
The placeholders will always render based on the language set on the user's profile, so I'm afraid there's no option to force system placeholders to display text in a language different from that of the requester's language.
0
Ben Wilcox
So, the Description doesn't technically seem to be a field as it's just the first comment of a ticket. Which is a bit wierd. It would be nice to be able to grab that first comment when it's created and put it into a separate field that's reportable if there's a way to do that. Also, since the first comment becomes the Description, is there any utility for what to do with the last comment, which could be something like "Close Notes"? Having a way to see close notes in a report outside of having to make a separate field would be very useful.
1
Austin Killey
Hey there @...,
Really great questions and solid use cases here. For a setup like that, that's technically possible, but will sadly go beyond the scope of support for what Support can natively do with ticket comments.
Triggers and automations don't have any actions available to fill in ticket text fields like they do with dropdown or multi-select fields, but you could fire a HTTP target as a trigger/automation action instead to update the same ticket via API (pointing to https://subdomainnamehere.zendesk.com/api/v2/tickets/{{ticket.id}}.json). In this setup, you could tell this hypothetical target to fill in a ticket's text field with the value of {{ticket.description}}.
It's hugely important to note that we don't officially support this method due to the risk of race conditions and possible ticket collisions, but if you were still determined to have a ticket field filled in with a ticket comment, the target/trigger combo would be the way to do it.
As for those close notes, having an additional ticket text field to fill in the last ticket comment would also be the best bet I can think of, applying a text field value like {{ticket.comments | last}}. Explore's reporting data thrives more on ticket fields rather than the content of ticket comments themselves, so just as long as we can have that desired data stored in field values specifically, you'd be all set to report on it in Explore. Hope this helps!
1
Sham Moodley
Can placeholders be used in Zendesk guide. I would like to personalize some articles based on the organization name?
0
Jason Schaeffer
Hi Sham,
Placeholders are currently not available for the Guide Product, they are for ticket updates. Can you explain your use case a little more and perhaps there is another solution we can find for you.
Thanks!
Jason Schaeffer | Customer Advocate |
0
Sham Moodley
Hi Jason,
Basically, I want to create an article in Guide and based on the Signed-in user's organization, I want some part of that article to pull the organization's name. So the article seems like it is written for that organization, instead of me writing the same article multiple times but just changing the organization name. Hope this helps
0
Stanislav Hlazkov
Hi! What about user's photo? I see mention of "Avatar" in comments_formatted. But I tried it and see only name. Is there a way to get user's photo content url from placeholders?
1
Austin Killey
Really good question, @....
A user's avatar URL isn't available natively with our user placeholders, but with some custom Liquid code and filters like this split filter, it looks like this is somewhat possible if you pull from those formatted ticket comment placeholders instead. Since those placeholders are pre-formatted chunks of HTML markup which make the comments look pretty in email notifications, we could try cutting out almost all of the formatting except for the photo URL.
I got some code working, but ONLY when using it in trigger/automation email notifications, so sadly no luck with displaying photo urls directly within ticket comments themselves.
We wouldn't be able to troubleshoot custom Liquid usage like this officially, but maybe something like this code below might just do the trick if you're focusing on pulling the photo URL of the author of the latest comment:
1
Stanislav Hlazkov
Austin K thank you for your reply. We will try to use this trick. I think it will be helpful for us.
0
Usman Khan
Can we get the old values from webhook. For example: I updated the ticket Title from "This was my ticket title" to "My ticket title is fine". Can I get the old title which is "This was my ticket title"?
Thanks
0
Gab Guinto
Hi Usman,
I'm afraid this is not possible. Placeholders are only able to pull info based on the ticket's current state. There's no option to get previous field values using system placeholders.
1