<HTML>
<HEAD>
<TITLE>Re: [rt-users] highlight updated tickets</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Hi, sorry for the late reply but I was looking for almost the same thing and here’s how I solved it. I wanted to check if a ticket had been updated by anyone else than our staff i.e. requestor or any of the CC:s. I used the example callback and the css from the wiki to change the statuscolor and this is the function:<BR>
<BR>
sub statusInColor {<BR>
   my $Ticket = shift;<BR>
   my $status = $Ticket->Status;<BR>
   my $css = "status" . lc $status;<BR>
   my $LastUpdater = $Ticket->LastUpdatedByObj->EmailAddress;<BR>
   my $TicketRequestors = $Ticket->Requestors->MemberEmailAddressesAsString;<BR>
   my $TicketCC = $Ticket->Cc->MemberEmailAddressesAsString;<BR>
 <BR>
   if (($TicketRequestors =~ $LastUpdater) || ($TicketCC =~ $LastUpdater))<BR>
   {<BR>
       $css = "status" . lc "reply"; <BR>
    $status = "<div class=\"$css\">$status REP</div>"; <BR>
<BR>
   }<BR>
   else { <BR>
       $status = "<div class=\"$css\">$status</div>";<BR>
   }<BR>
<BR>
   return \"$status";<BR>
}<BR>
<BR>
Besides changing the color, I set a “REP” flag after the status in case any of the users are colorblind. Hope this helps.<BR>
<BR>
Regards,<BR>
Johan Baarman<BR>
<BR>
<BR>
<BR>
On 1/23/08 2:49 PM, "Hoogstraten, Ton" <Ton.Hoogstraten@ingram.nl> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><SPAN STYLE='font-size:12.0px'><FONT FACE="Arial">Ello,<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Arial">I'm looking for a possible way to make a ticket highlight when it has been last updated by anybody else then the owner. I Found ShowStatusInColor on the Wiki page, and it comes close to what I want but I could use some help finding the correct last updated by user in a ticket instead of the ticket status so I can modify the callback.<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Arial">Regards,<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Arial">Ton Hoogstraten<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></FONT></SPAN><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'>_______________________________________________<BR>
<a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><BR>
<BR>
Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a><BR>
Commercial support: sales@bestpractical.com<BR>
<BR>
<BR>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media. <BR>
Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'><BR>
</SPAN></FONT></FONT>
###########################################<br><br>This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.<br>For more information, connect to http://www.f-secure.com/</BODY>
</HTML>