Marking a ticket if you were not the last user to update it

I have to say that RT is a great ticketing system.

The one thing that proved useful for myself was to see if I was the last
person to update a ticket or not.

My addition was to add an * next to the ticket status in the “10 highest
priority tickets I own…” table if I was not the last person to update
that particular ticket.

The only change is to insert the following:

if($session{‘CurrentUser’}->Id ne $Ticket->LastUpdatedBy){
$m->print( ‘*’);
}

Starting at line 167 of:
/opt/rt3/var/mason_data/obj/standard/Elements/MyTickets

This was tested in rt 3.0.8, I haven’t had a chance to upgrade to 3.0.9
yet. I suppose it is valid change for the search results page too.

I hope you find it a worthy addition.

Regards,

David Ross
Webmaster
Argyll & Clyde NHS

At 11:35 AM 2/20/2004, David Ross wrote:

Starting at line 167 of:
/opt/rt3/var/mason_data/obj/standard/Elements/MyTickets

This was tested in rt 3.0.8, I haven’t had a chance to upgrade to 3.0.9
yet. I suppose it is valid change for the search results page too.

You probably didn’t want to modify the Mason cache like you did. That is
most certainly going to get blown away in the not to distant future. Try
copying /path/to/rt3/share/html/Elements/MyTickets to
/path/to/rt3/local/html/Elements/MyTickets and modify it there.

Michael

Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”

Michael S. Liebman wrote:

At 11:35 AM 2/20/2004, David Ross wrote:

Starting at line 167 of:
/opt/rt3/var/mason_data/obj/standard/Elements/MyTickets

This was tested in rt 3.0.8, I haven’t had a chance to upgrade to 3.0.9
yet. I suppose it is valid change for the search results page too.

You probably didn’t want to modify the Mason cache like you did. That is
most certainly going to get blown away in the not to distant future. Try
copying /path/to/rt3/share/html/Elements/MyTickets to
/path/to/rt3/local/html/Elements/MyTickets and modify it there.

Michael

Thanks for that. I really haven’t used mason or made any changes to
parts of rt until this.

Your input is much appreciated.

Regards,

David Ross
Webmaster