Here's the list of all placeholder variables that are supported:
Ticket
Attribute |
Type |
Usage |
- |
---|---|---|---|
id |
|
|
- |
title/subject |
|
|
- |
description |
|
|
- |
source/channel |
|
|
- |
category |
|
|
- |
number |
|
|
- |
priority |
|
|
- |
status |
|
|
- |
link/url |
|
|
- |
created_at |
|
|
Example: |
updated_at |
|
|
- |
latest_comment |
|
|
- |
tags |
|
|
To be used in loops |
organization |
|
|
Refer: Organization Placeholders |
requester |
|
|
Refer: User Placeholders |
agent |
|
|
Refer: User Placeholders |
User
Attribute |
Type |
Usage |
- |
---|---|---|---|
id |
|
|
Example: |
|
|
Example: |
|
name |
|
|
- |
first_name |
|
|
- |
last_name |
|
|
- |
Organization
Attribute |
Type |
Usage |
---|---|---|
id |
|
|
name |
|
|
subdomain |
|
|
tags |
|
|
Formatting helpers
1. Format Timestamp
{{ ticket.created_at | date: "%a, %b %d, %y" }}
This converts the timestamp to Tue, Apr 22, 14
format.
2. Default
Use a default value when a variable has an empty value.
{{ ticket.agent.first_name | default: "Not Assigned" }}
This prints Not Assigned
when a ticket is not assigned to any agent.
When you want to use another variable as a default value, you can use
{{ ticket.requester.name | default: ticket.requester.email }}
This uses the value of the default variable when the first one is blank.
3. Link to text using placeholder
To add a dynamic link to text, type in the placeholder variable in the link field.