Can I see which tickets have been replied to?

When I log into RT I can see all of the tickets I am assigned to, the problem is
that I cannot distinguish between those tickets that have been updated by the
requestor (or anyone else but me for that matter)? is there a way to see this?
My aim is to be able to use RT exclusively, so that I don’t rely on an email
alert (that means I need to check my email frequently…)

Many thanks
Ron

When I log into RT I can see all of the tickets I am assigned to, the
problem is that I cannot distinguish between those tickets that have
been updated by the requestor (or anyone else but me for that matter)?
is there a way to see this?

Apart from ‘wait 6 hours, then try again’ ? :wink:

I presume that you are referring to the main home page of an RT
installation, where the summary of tickets is given. The obvious solution
is to check the last item of each ticket in the summary, and see whether
it was the requestor or an AdminCc who updated it.

This sounds easy; just a trifle in fact. Right? Actually, its not as
easy as that. Firstly, remember that RT is a database-driven application.
Secondly, the summary page of ‘top 25’ stuff is already doing a lot of
database queries to generate that information, and its doing this each
time. Adding extra queries might well make your wait intolerable.

Having said that, heres a little snippet that might do what you want, for
RT2 (as I don’t believe you specified which RT version you are using).

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B             Operations/Security

– WebRT/Elements/MyTickets
<& /Elements/TitleBoxStart, title => “25 highest priority tickets I own…” &>

% while (my $Ticket = $MyTickets->Next) { % # Fill in the cache of QueueAdminCcs (remember that someone might be in % # multiple queues, and thus AdminCc in one might be Joe Average in another ) % if( ! defined( $MyAdminCache{$Ticket->QueueObj->id} ) ){ % my $taccs = $Ticket->QueueObj->AdminCc; % while( my $tmpacc = $taccs->Next() ){ % $MyAdminCache{$Ticket->QueueObj->id}{$tmpacc->OwnerObj->id}++; % } % } % # We'll use red if the requestor last did something, green if an AdminCc % # did something. % my $transactions = $Ticket->Transactions; % # go backwards in transactions. % $transactions->OrderBy( FIELD => 'id', VALUE => 'DESC' ); % my $havelast = 0; % # 'yellow' for unknown status. % my $colour = "yellow"; % while( ($havelast == 0 ) && ( my $trans = $transactions->Next() ) ){ % next unless( $trans->Type() eq 'Correspond' || $thistrans->Type() eq 'Create' ); % $havelast++; % if( defined( $MyAdminCache{$Ticket->QueueObj->id}{$trans->CreatorObj->id} ) ){ % $colour="green"; % }else{ % $colour="red"; % } % } % }
# Subject Queue Status  
<%$Ticket->Id%> <%$Ticket->Subject || '[no subject]'%> <%$Ticket->QueueObj->Name%> <%$Ticket->Status%> [Update]
<& /Elements/TitleBoxEnd &>

<%INIT>
my $MyTickets;
$MyTickets = new RT::Tickets ($session{‘CurrentUser’});
$MyTickets->LimitOwner(VALUE => $session{‘CurrentUser’}->Id);
$MyTickets->LimitStatus(VALUE => “open”);
$MyTickets->LimitStatus(VALUE => “new”);
$MyTickets->OrderBy(FIELD => ‘Priority’, ORDER => ‘DESC’);
$MyTickets->RowsPerPage(25);

my %MyAdminCache = ();

</%INIT>

Bruce,

Thanks a lot man, this is great!!
It completely does the trick, I am on RT3 (2.1.85 as we speak) I’ll do the
conversion and post it.

Cheers
Ron

Hi Bruce,

With rt3 I have used $Ticket->LastUpdatedByObj->Name and
$Ticket->OwnerObj->Name,
simply to mark if the ticket was acted upon by anyone but the owner,
obviously one could do a bit more and color
tickets differently if one was replied to by the requestor vs. commented on
by someone etc… etc…

In any case,
Thanks for your help.

Cheers
Ron