While working with response templates, automatic replies, or email notifications based on certain ticket events, you may want to work with several ticket attributes, like the ticket status, priority and so on.
For that purpose OTRS uses a placeholder mechanism called Notification tags, which you can simply add to your response templates, and OTRS will replace them automatically and use the current value of a certain attribute.
General OTRS environmental attributes
<OTRS_CONFIG_HttpType>
This tag reads from the SysConfig whether plain HTTP or HTTPS is used and returns one of these values
<OTRS_CONFIG_FQDN>
This tag returns the Fully Qualified Domain Name as defined in your SysConfig
OTRS Ticket attributes
<OTRS_TICKET_TicketNumber>
Return the Ticket number of the current ticket. If you?re using this tag, please keep in mind that the Ticket number does not contain the Ticket Hook, for example Ticket# but only the Ticket number!
<OTRS_TICKET_TicketID>
This return the ID of the Ticket as given by your application database. Please notice that the OTRS front-ends mainly operate with the Ticket number rather than with the Ticket ID.
<OTRS_TICKET_Title>
Contains the Title of the ticket. Most likely the Ticket Title will become the subject of the first Ticket article. If you add [xy] to this tag, OTRS will shorten the title to xy chars.
<OTRS_TICKET_Queue>
This tag returns the queue the Ticket resides in.
<OTRS_TICKET_QueueID>
The Queue ID is the ID a given by the application database
<OTRS_TICKET_State>
If you want to propagate the current Status of a Ticket, you can use this tag.
<OTRS_TICKET_StateType>
The State Type reflects the type of the current Ticket according to your OTRS configuration. Valid types are for example open, closed, pending, pending auto
<OTRS_TICKET_Priority>
Returns the Priority of the current Ticket as defined in your OTRS configuration.
<OTRS_TICKET_PriorityID>
The Priority ID contains the ID as given by your application database.
<OTRS_TICKET_Lock>
Returns if the current Ticket is “locked” or “unlocked”
<OTRS_TICKET_LockID>
The Lock ID returns the ID of “locked” or “unlocked” according to your OTRS application database
<OTRS_TICKET_Owner>
This tag returns the current Owner / Agent this Ticket is assigned to
<OTRS_TICKET_OwnerID>
Returns the User ID of the Owner of this Ticket
<OTRS_TICKET_CustomerID>
This Tag returns the Customer ID of the current Customer this Tickets is assigned to. This value is queried from your Customer Database.
<OTRS_TICKET_CustomerUserID>
This tag returns the username of a Customer as given by your Customer Database.
<OTRS_TICKET_Created>
Returns the creation date of the Ticket in the format YYYY-MM-DD HH:MM:SS
<OTRS_TICKET_Changed>
Returns the date when Ticket was changed the last time in the format YYYY-MM-DD HH:MM:SS
<OTRS_TICKET_TicketFreeKey1>
This tag is available for all Ticket Free Keys 1-16. Simply change the suffix to the according number of the Free Key you want to refer to.
<OTRS_TICKET_TicketFreeText1>
This tag is available for all Ticket Free Text Fields 1-16. Simply change the suffix to the according number of the Free Key you want to refer to.
<OTRS_TICKET_TicketFreeTime1>
This tag is available for all Free Time Fields 1-6. Simply change the suffix to the Free Time Field you need.