[rt-users] This transaction appears to have no content -- on internal transactions

Rick Measham rickm at mailguard.com.au
Wed Feb 15 20:00:44 EST 2006


Drew Barnes wrote:
> I created a custom template to use with OnOwnerChange as follows:
-- snip --
> The ticket was initially created with the following data:
> { $Ticket->Transactions->First->Content; }
> {$RT::WebURL}Ticket/Display.html?id={$Ticket->id}

Thanks Drew!
I've taken your suggestion as inspiration and come up with the following 
template. It gives the new owner the original request, and also the 
latest update to the ticket (which probably helps the recipient work out 
WHY it got assigned to them). Next task is to wrap the whole 'latest 
update' part in an 'if' to make sure there's been at least one 
transaction that isn't the first.

Cheers!
Rick Measham




RT-Attach-Message: yes


{$Transaction->CreatedAsString}: Request {$Ticket->id} was acted upon.
Transaction: {$Transaction->Description}
        Queue: {$Ticket->QueueObj->Name}
      Subject: {$Transaction->Subject || $Ticket->Subject || "(No 
subject given)"}
        Owner: {$Ticket->OwnerObj->Name}
   Requestors: {$Ticket->RequestorAddresses}
       Status: {$Ticket->Status}
  Ticket <URL: {$RT::WebURL}Ticket/Display.html?id={$Ticket->id} >


This ticket has been assigned to you by {$Transaction->CreatorObj->Name}

=========================================================
The original request:
=========================================================
{ $Ticket->Transactions->First->Content; }

=========================================================
The latest update:
=========================================================
{ my @trans = reverse @{ $Ticket->Transactions->ItemsArrayRef }; my 
$x=0; while((!$trans[$x]->ContentObj) or ($trans[$x]->CreatorObj->Name 
eq 'RT_System')){ $x++ }; $trans[$x]->Content }


-- 
MailGuard Pty. Limited

Melbourne 68-72 York Street South Melbourne VIC 3205  P  61 3 9694 4444
Sydney    Lv 20 Twr 2, 201 Sussex St Sydney NSW 2000  P  61 2 9004 7889


Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg





More information about the rt-users mailing list