- Edited
After figuring out how to get custom variables to show in email sends (https://forum.osticket.com/d/93412-add-supported-variable), I came across a problem that has stumped me for weeks - that it only works in the Ticket Details section, not in the Contact Information section. The base variables for the fields Email Address, Full Name, Phone Number, work fine using the short codes %{ticket.name} , %{ticket.email}, %{ticket.phone} but the custom field I added called Country (with variable name "country") for some reason did not work... %{ticket.country} just printed blank in the email send.
Once again, I stumbled across the solution
https://github.com/osTicket/osTicket/issues/603
For custom fields in the Contact Information section there's a different short code you have to use than the base fields and that's the addition of the word "user" - for example %{ticket.user.country}.
Don't know if this is mentioned anywhere in the documentation, I didn't find it - that's for sure! Hopefully this helps somebody else save some time. Cheers!