[rt-users] Template/Scrip Setup

Chris Collison collison.chris at hotmail.com
Mon Jun 29 10:59:51 EDT 2009


So what I'm looking to do is send an on-call rep a text message(via email address) when a
certain type of ticket is created in the queue.  That part of the
system is currently functional.  However, it currently only sends the
subject to the on-call rep and this isn't enough information. The
desired behavior is to get the users create message(at least the first
150 chars or so) attached to the message also.

The current template is:


--------------------------------------
To: {$Ticket->OwnerObj->FreeformContactInfo}
Subject: [Severity 2]

{$Ticket->Subject}


-------------------------------------

So getting to what I want requires using the Transaction object I'm pretty sure.

I was thinking along the lines of adding something like this:

------------------------------------
{substr($Transaction->Message, 0,160}

-------------------------------------

Anyone else done this before? Also does inline perl work in templates? Any help/feedback would be appreciated, thanks!



~Chris


_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090629/2e1e06f1/attachment.htm>


More information about the rt-users mailing list