Highlight updated tickets

Ello,

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.

Regards,

Ton Hoogstraten

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:

sub statusInColor {
my $Ticket = shift;
my $status = $Ticket->Status;
my $css = “status” . lc $status;
my $LastUpdater = $Ticket->LastUpdatedByObj->EmailAddress;
my $TicketRequestors = $Ticket->Requestors->MemberEmailAddressesAsString;
my $TicketCC = $Ticket->Cc->MemberEmailAddressesAsString;

if (($TicketRequestors =~ $LastUpdater) || ($TicketCC =~ $LastUpdater))
{
$css = “status” . lc “reply”;
$status = “<div class="$css">$status REP”;

}
else {
$status = “<div class="$css">$status”;
}

return "$status";
}

Besides changing the color, I set a ³REP² flag after the status in case any
of the users are colorblind. Hope this helps.

Regards,
Johan BaarmanOn 1/23/08 2:49 PM, “Hoogstraten, Ton” Ton.Hoogstraten@ingram.nl wrote:

Ello,

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.

Regards,

Ton Hoogstraten


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/

Thanks, thats great.
I have a problem though, i get the “REP” tag and I can see the “

new REP
” lines correctly in the page source,
but it seems like the additional css styles aren’t loaded. I’ve put
them into $RT_HOME/local/html/Callbacks/MyCallbacks/NoAuth/webrt.css/Default
as described in the ShowStatusInColor wiki page.
I’ve looked into the various RT mailing lists but came up with nothing
relevant, so I’m probably missing something here.
Any help will be appreciated.

tx,
Roy.On Feb 5, 2008 11:16 AM, Johan Baarman johan.baarman@citec.fi wrote:

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:

sub statusInColor {
my $Ticket = shift;
my $status = $Ticket->Status;
my $css = “status” . lc $status;
my $LastUpdater = $Ticket->LastUpdatedByObj->EmailAddress;
my $TicketRequestors =
$Ticket->Requestors->MemberEmailAddressesAsString;
my $TicketCC = $Ticket->Cc->MemberEmailAddressesAsString;

if (($TicketRequestors =~ $LastUpdater) || ($TicketCC =~ $LastUpdater))
{
    $css = "status" . lc "reply";
 $status = "<div class=\"$css\">$status REP</div>";

}
else {
    $status = "<div class=\"$css\">$status</div>";
}

return \"$status";

}

Besides changing the color, I set a “REP” flag after the status in case any
of the users are colorblind. Hope this helps.

Regards,
Johan Baarman

On 1/23/08 2:49 PM, “Hoogstraten, Ton” Ton.Hoogstraten@ingram.nl wrote:

Ello,

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.

Regards,

Ton Hoogstraten



The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Yes I actually had the same problem, I solved it by making a local overlay
of main.css in /html/NoAuth/css/3.5-default/ and including
a statuscolor.css. You’ll put your colorsetting in that file. Sorry I forgot
to mention this.

/JohanOn 2/5/08 1:17 PM, “Roy Depp” roydepp@gmail.com wrote:

Thanks, thats great.
I have a problem though, i get the “REP” tag and I can see the “

new REP
” lines correctly in the page source,
but it seems like the additional css styles aren’t loaded. I’ve put
them into $RT_HOME/local/html/Callbacks/MyCallbacks/NoAuth/webrt.css/Default
as described in the ShowStatusInColor wiki page.
I’ve looked into the various RT mailing lists but came up with nothing
relevant, so I’m probably missing something here.
Any help will be appreciated.

tx,
Roy.

On Feb 5, 2008 11:16 AM, Johan Baarman johan.baarman@citec.fi wrote:

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/

Thank Johan,

Added to ShowStatusInColor wiki page.On Feb 5, 2008 1:55 PM, Johan Baarman johan.baarman@citec.fi wrote:

Yes I actually had the same problem, I solved it by making a local overlay
of main.css in /html/NoAuth/css/3.5-default/ and including
a statuscolor.css. You’ll put your colorsetting in that file. Sorry I forgot
to mention this.

/Johan

On 2/5/08 1:17 PM, “Roy Depp” roydepp@gmail.com wrote:

Thanks, thats great.
I have a problem though, i get the “REP” tag and I can see the “

new REP
” lines correctly in the page source,
but it seems like the additional css styles aren’t loaded. I’ve put
them into $RT_HOME/local/html/Callbacks/MyCallbacks/NoAuth/webrt.css/Default
as described in the ShowStatusInColor wiki page.
I’ve looked into the various RT mailing lists but came up with nothing
relevant, so I’m probably missing something here.
Any help will be appreciated.

tx,
Roy.

On Feb 5, 2008 11:16 AM, Johan Baarman johan.baarman@citec.fi wrote:

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com