You're welcome. I liked your idea and thought it would be good for my users too, and they are loving it.
We dont use the self service interface yet, but I had a look at it anyway and it was showing the colours as well as New Reply. Do you not see it? -----Original Message----- From: Daniel Cook [mailto:[email protected]] Sent: 11 February 2009 20:27 To: Alex Young Subject: RE: [rt-users] colorize status Alex, Thanks a ton! Your solution provides nice combination of the features listed on the page with the added bonus of marking the messages as read. Quick question for you... I noticed that this works great for my side of things... Is there any way to have the "New Reply" show up for general users in the self service interface as well? Daniel Cook Technology Coordinator Finley School District [email protected] (509) 586-3217 >>> "Alex Young" <[email protected]> 02/10/09 5:38 PM >>> I've been looking at this today and I have it working, but I think the code needs a bit of a cleanup. Looking in the files the code that shows the info at the top of the ticket is in /opt/rt3/share/html/Ticket/Elements/ShowUpdateStatus so I sourced much of the code from there. I changed your updated statusInColor code form the WIKI. # Show status in colour. sub statusInColor { my $Ticket = shift; my $status = $Ticket->Status; my $css = "status" . lc $status; my $cssreply = "status" . lc "reply"; my $LastUpdater = $Ticket->LastUpdatedByObj->EmailAddress; my $TicketRequestors = $Ticket->Requestors->MemberEmailAddressesAsString; my $TicketCC = $Ticket->Cc->MemberEmailAddressesAsString; my $CurrentUser = $session{'CurrentUser'}->EmailAddress; # Added $CurentUser ne $LastUpdater to prevent showing New Reply tag when the last updater is the current user. if (($CurrentUser ne $LastUpdater) && ($TicketRequestors =~ $LastUpdater) || ($TicketCC =~ $LastUpdater)) { my $txn = $Ticket->SeenUpTo or return \"<div class=\"$css\">$status</div>"; # my $TicketLink = RT->Config->Get('WebPath') ."/Ticket/Display.html?id=". $Ticket->id. "#txn-".$txn->id; # Comment out the line above and uncomment the following line to mark posts as seen when following link. my $TicketLink = RT->Config->Get('WebPath') ."/Ticket/Display.html?id=". $Ticket->id ."&MarkAsSeen=1". "#txn-".$txn->id; $status = "<div class=\"$css\">$status <a href=\"$TicketLink\"><span class=\"$cssreply\">New Reply</span></a></div>"; } else { $status = "<div class=\"$css\">$status</div>"; } return \"$status"; } -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Cook Sent: 06 February 2009 22:33 To: [email protected] Subject: [rt-users] colorize status So I've updated the ShowStatusInColor page on the wiki to reflect how I have implemented this in 3.8.2 The question that I have is this... When replys are colorized in my list view, the way things are setup right now, it is done based on who the last person to modify the ticket was.... I have noticed that when I open a ticket that has had a reply there is a little note at the top of the ticket that sais there are new messages. This message goes away after I have viewed the message. This is how I would like this new reply type flag setup for my list view. I would like it to drop the rep flag and the reply color after I view the new message - without necessarily making any reply or physical change to the ticket. Is this easily possible? Any advise on how to go about it? Thanks, Dan _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [email protected] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [email protected] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
