[SOLVED] Variables in responses and notifications

Moderator: crythias

Post Reply
fbobraga
Znuny newbie
Posts: 77
Joined: 15 Jul 2010, 20:04
Znuny Version: 2.4.7
Contact:

[SOLVED] Variables in responses and notifications

Post by fbobraga »

I can have a list of all available variables for use in the "[Auto] Responses" and "Notification [(Event)]"? Where? (that kind of doc, or entry in the wiki, would be very useful...)

I couldn't find it in the docs (i. e., in http://doc.otrs.org/2.4/en/html/x1258.html), http://wiki.otrs.org/ nor in this forum. All that I can find is the footer of the pages:
[ Note ]

Useable options:
<OTRS_CUSTOMER_SUBJECT[20]> To get the first 20 character of the subject.
<OTRS_CUSTOMER_EMAIL[5]> To get the first 5 lines of the email.
<OTRS_CUSTOMER_REALNAME> To get the realname of the sender (if given).
<OTRS_CUSTOMER_*> To get the article attribute (e. g. (<OTRS_CUSTOMER_From>, <OTRS_CUSTOMER_To>, <OTRS_CUSTOMER_Cc>, <OTRS_CUSTOMER_Subject> and <OTRS_CUSTOMER_Body>).
<OTRS_CUSTOMER_DATA_*> Options of the current customer user data (e. g. <OTRS_CUSTOMER_DATA_UserFirstname>).
<OTRS_OWNER_*> Ticket owner options (e. g. <OTRS_OWNER_UserFirstname>).
<OTRS_RESPONSIBLE_*> Ticket responsible options (e. g. <OTRS_RESPONSIBLE_UserFirstname>).
<OTRS_CURRENT_*> Options of the current user who requested this action (e. g. <OTRS_CURRENT_UserFirstname>).
<OTRS_TICKET_*> Options of the ticket data (e. g. <OTRS_TICKET_TicketNumber>, <OTRS_TICKET_TicketID>, <OTRS_TICKET_Queue>, <OTRS_TICKET_State>).
<OTRS_CONFIG_*> Config options (e. g. <OTRS_CONFIG_HttpType>).
Last edited by fbobraga on 28 Jul 2010, 13:40, edited 1 time in total.
Evaluation/pilot: OTRS 2.4.7 on Linux (CentOS 5.4) with MySQL database connected to an Active Directory for Agents and Customers.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Variables in responses and auto-responses

Post by jojo »

Have a look in faq.otrs.org and search for "Notification Tags"
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
fbobraga
Znuny newbie
Posts: 77
Joined: 15 Jul 2010, 20:04
Znuny Version: 2.4.7
Contact:

Re: Variables in responses and auto-responses

Post by fbobraga »

There, It's hard to find (direct link http://faq.otrs.org/otrs/public.pl?Acti ... &ItemID=70)... and there are multiple entries, one per version

Thanks
Evaluation/pilot: OTRS 2.4.7 on Linux (CentOS 5.4) with MySQL database connected to an Active Directory for Agents and Customers.
EwingSK
Znuny newbie
Posts: 4
Joined: 08 Jan 2011, 11:13
Znuny Version: 2.4
Location: Slovakia, Kosice

Re: [SOLVED] Variables in responses and notifications

Post by EwingSK »

I have question....is there variable <OTRS_OWNER_UserLastname> ???

Thank you
dnunes91
Znuny newbie
Posts: 3
Joined: 22 Mar 2022, 21:39
Znuny Version: 6.0.30
Real Name: Diogo Nunes

Re: [SOLVED] Variables in responses and notifications

Post by dnunes91 »

Can you indicate if there is a TAG that we can for example, in an answer depending on the time of day, change from Good Morning to Good Afternoon and Good Night?
Post Reply