Placeholders let SweetHawk apps pull information from across your Zendesk and use it wherever an app writes something. Read values from the ticket, its requester and organization, custom fields and custom objects, from related tickets such as a parent ticket or its sub-tickets, and from the app itself, such as an approver's comments or a timer's overtime. Then put them in comments, ticket fields, tags, new sub-tickets, approval messages, or updates to other tickets.
Placeholders use Liquid, so you can do much more than copy a value. Use conditions to decide what to write, loops to list things, and filters to reformat dates, convert time zones, or add up a field across several tickets.
Where you can use placeholders
Any text field with a placeholder button (+) next to it accepts placeholders. This includes:
| App | Where |
| Every app | Ticket updates on app events: comments, tags, ticket fields, status, assignee and more |
| Approve | Approval messages, subjects and notes, and approver lists |
| Tasks and Subtickets | Task list and task names, and sub-ticket templates (subject, description and fields) |
| Calendar | Event subject, description and location |
| Timers | Timer workflow updates and messages |
| Reminders | Reminder descriptions and notifications |
| Survey | Question text and survey link text |
| Broadcast and Notify | Message titles and bodies |
| Power Actions | Any field a Power Action sets |
| Journeys and Kanban | Card and phase text |
Add a placeholder
- Click + next to the field.
- Search for what you want, such as "requester" or the name of a custom field.
- Click the placeholder to add it.
Using the + button is the safest way, because it adds the right ID for custom fields. You can also type placeholders yourself. Always put them in double curly brackets, like {{ticket.subject}}.
If a placeholder is wrong or has no value, it's left out and the rest of the text still works.
Ticket placeholders
Zendesk's ticket placeholders work in every SweetHawk app, so you can use any placeholder from Zendesk's Placeholder reference for business rules. That's hundreds of them. Here are some of the most used:
| Details | Placeholders |
| Ticket |
ticket.id, ticket.subject, ticket.description, ticket.status, ticket.priority, ticket.ticket_type, ticket.tags, ticket.via
|
| Links |
ticket.link, ticket.url
|
| Dates |
ticket.created_at, ticket.updated_at, ticket.due_date
|
| People |
ticket.requester.name, ticket.requester.email, ticket.requester.first_name, ticket.assignee.name, ticket.assignee.email, ticket.submitter.name
|
| CCs and followers |
ticket.cc_names, ticket.follower_names, ticket.email_cc_names
|
| Organization, group, brand and form |
ticket.organization.name, ticket.group.name, ticket.brand.name, ticket.form.name
|
| Comments |
ticket.latest_comment, ticket.latest_public_comment, ticket.latest_private_comment, ticket.first_comment, ticket.comments_formatted
|
current_user is the person who caused the event, such as the agent who completed a task: current_user.name, current_user.email.
Custom fields
-
Ticket fields:
{{ticket.ticket_field_<id>}}gives the field's value. For drop-down fields,{{ticket.ticket_field_option_title_<id>}}gives the option's name instead of its tag. Replace <id> with the field's ID, for example{{ticket.ticket_field_32224158}}. -
User fields:
{{ticket.requester.custom_fields.<field key>}}, and the same forticket.assignee. -
Organization fields:
{{ticket.organization.custom_fields.<field key>}} -
Lookup fields: if a ticket field links to a user, organization or ticket, you can go further into it, for example
{{ticket.ticket_field_<id>.name}}.
Read other tickets
In actions that run on app events, placeholders can read tickets other than the one the event happened on:
-
The parent ticket:
{{ticket.parent.subject}},{{ticket.parent.status}}, or any other ticket placeholder afterticket.parent. -
Sub-tickets:
{{ticket.subtickets}}is the list of a parent ticket's sub-tickets. For example,{{ ticket.subtickets | map: "id" | join: "," }}gives their IDs. -
Any ticket by ID:
{{tickets[12345].subject}}, or with the ID from a field:{{tickets[ticket.ticket_field_<id>].status}} -
Totals across tickets:
sum_tickets,average_tickets,min_ticketsandmax_ticketswork out a number field across a list of tickets. For example,{{ ticket.ticket_field_<ids field> | split: "," | sum_tickets: "ticket_field_<cost field>" }}adds up the cost field on every ticket listed in the IDs field.
ticket.parent and ticket.subtickets need the Tasks and Subtickets app. To use what you read to change other tickets, see Update other tickets from an app event.
App placeholders
Each app adds its own placeholders to its own fields and events. The + button shows every one you can use in that field. Some common ones are below, and the articles for each app list more.
| App | Examples |
| Approve |
request.name, request.status_display, request.message, request.approver.name, request.all_approver_comments_with_names
|
| Tasks and Subtickets |
task.name, task.completed_by.name, task.subticket_id, task_list.name, task_list.tasks_remaining_count, task_list.subticket_ids
|
| Timers |
timer.name, timer.minutes_left, timer.minutes_over_time, timer.total_minutes_elapsed, timer.breached_count
|
| Calendar |
calendar_event.subject, calendar_event.start_at, calendar_event.location, calendar_event.attendee_emails
|
| Reminders |
reminder.description, reminder.notify_at, reminder.completed_by.name
|
| Survey |
survey.name, survey_response.answers
|
| Journeys |
journey.title, journey.current_phase.name, journey.phase_progression
|
| Kanban |
kanban_item.subject, kanban_item.assignee.name, kanban_item.kanban_board
|
Format and combine placeholders
Add a filter after a | to change how a value shows:
- Format a date:
{{ticket.created_at | date: "%b %d, %Y"}}gives "Nov 30, 2026". - Show a time in another time zone:
{{ticket.created_at | in_time_zone: "America/New_York" | date: "%I:%M %p"}} - Show something when a value is empty:
{{ticket.assignee.name | default: "Unassigned"}}
Show text only in some cases:
{% if ticket.priority == "urgent" %}This is urgent, please reply today.{% endif %}
List things with a loop:
{% for task in ticket.remaining_tasks %}- {{task.name}}
{% endfor %}
Test your placeholders
The free Liquid Placeholders app shows a live preview of your text against a real ticket, and highlights mistakes as you type. Use it to check longer templates before you save them.
More on placeholders in each app
These articles go into each app's placeholders in more detail, including which ones you can use at each stage:
- Approve: Ticket Updates & placeholders - Approve app, Advanced approver placeholders in approval definitions, Using Conditional Logic in Approve Messages (Liquid Guide) and Sending ticket comments and/or attachments to approvers
- Tasks and Subtickets: How to record tasks data on a Zendesk ticket and Duplicating conversations & attachments into a sub-ticket
- Timers: Recording timer information in Zendesk ticket fields
- Survey: Injecting Survey Data into Zendesk Tickets and Mapping Survey responses to Zendesk drop-down and checkbox fields
- Calendar: Reporting recipes for Calendar in Zendesk Explore
- Power Actions: Using Liquid Markup in Power Actions