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

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";

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";
}
else {
$status = “<div class=”$css">$status";
}

return \"$status";

}-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Daniel
Cook
Sent: 06 February 2009 22:33
To: rt-users@lists.bestpractical.com
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: sales@bestpractical.com

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

¿Have you tried to colorize using HTML code? :S :S

Regards,

ALBERTO VILLANUEVA VAL

Consultor

Altran

ParqueEmpresarial Las Mercedes, Edificio 1
C/ Campezo, 1. 28022 Madrid
Tel : + 34 91 744 46 00
Fax: + 34 91 415 24 57

www.altran.es-----Mensaje original-----
De: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] En nombre de Alex Young
Enviado el: miércoles, 11 de febrero de 2009 2:39
Para: Daniel Cook; rt-users@lists.bestpractical.com
Asunto: Re: [rt-users] colorize status

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";

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";
}
else {
$status = “<div class=”$css">$status";
}

return \"$status";

}

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Daniel
Cook
Sent: 06 February 2009 22:33
To: rt-users@lists.bestpractical.com
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: sales@bestpractical.com

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: sales@bestpractical.com

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

No, as I based the code on already existing code that did most of the job already. You’re welcome to suggest how it could be improved.-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Alberto Villanueva
Sent: 11 February 2009 08:53
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] colorize status

¿Have you tried to colorize using HTML code? :S :S

Regards,

ALBERTO VILLANUEVA VAL

Consultor

Altran

ParqueEmpresarial Las Mercedes, Edificio 1
C/ Campezo, 1. 28022 Madrid
Tel : + 34 91 744 46 00
Fax: + 34 91 415 24 57

www.altran.es

-----Mensaje original-----
De: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] En nombre de Alex Young
Enviado el: miércoles, 11 de febrero de 2009 2:39
Para: Daniel Cook; rt-users@lists.bestpractical.com
Asunto: Re: [rt-users] colorize status

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";

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";
}
else {
$status = “<div class=”$css">$status";
}

return \"$status";

}

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Daniel
Cook
Sent: 06 February 2009 22:33
To: rt-users@lists.bestpractical.com
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: sales@bestpractical.com

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: sales@bestpractical.com

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: sales@bestpractical.com

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

The code was HTML embebed :frowning: :frowning: :(. Get up early is bad :stuck_out_tongue:

When I look that code, I will try to suggest something :wink:

Regards,

ALBERTO VILLANUEVA VAL

Consultor

Altran

ParqueEmpresarial Las Mercedes, Edificio 1
C/ Campezo, 1. 28022 Madrid
Tel : + 34 91 744 46 00
Fax: + 34 91 415 24 57

www.altran.es-----Mensaje original-----
De: Alex Young [mailto:alexyoung@scoutsolutions.co.uk]
Enviado el: miércoles, 11 de febrero de 2009 11:04
Para: Alberto Villanueva; rt-users@lists.bestpractical.com
Asunto: RE: [rt-users] colorize status

No, as I based the code on already existing code that did most of the job
already. You’re welcome to suggest how it could be improved.

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Alberto
Villanueva
Sent: 11 February 2009 08:53
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] colorize status

¿Have you tried to colorize using HTML code? :S :S

Regards,

ALBERTO VILLANUEVA VAL

Consultor

Altran

ParqueEmpresarial Las Mercedes, Edificio 1
C/ Campezo, 1. 28022 Madrid
Tel : + 34 91 744 46 00
Fax: + 34 91 415 24 57

www.altran.es

-----Mensaje original-----
De: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] En nombre de Alex Young
Enviado el: miércoles, 11 de febrero de 2009 2:39
Para: Daniel Cook; rt-users@lists.bestpractical.com
Asunto: Re: [rt-users] colorize status

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";

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";
}
else {
$status = “<div class=”$css">$status";
}

return \"$status";

}

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Daniel
Cook
Sent: 06 February 2009 22:33
To: rt-users@lists.bestpractical.com
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: sales@bestpractical.com

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: sales@bestpractical.com

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: sales@bestpractical.com

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

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?From: Daniel Cook [mailto:dcook@finleysd.org]
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
dcook@finleysd.org
(509) 586-3217

“Alex Young” alexyoung@scoutsolutions.co.uk 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";

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";
}
else {
$status = “<div class=”$css">$status";
}

return \"$status";

}

Hi,

The code at http://wiki.bestpractical.com/view/ShowStatusInColor doesn’t work for me. Possibly because the directories are confusingly
discussed. I’ve got 3 files:

/opt/rt3/local/html/Callbacks/MyCallbacks/Elements/RT__Ticket/Columnmap/Columnmap

<%INIT>

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”;
}

$COLUMN_MAP->{Status}->{value} = &statusInColor;

</%INIT>
<%ARGS>
$COLUMN_MAP => undef
</%ARGS>

/opt/rt3/local/html/NoAuth/css/web2/End

@import “statuscolor.css”;

/opt/rt3/local/html/NoAuth/css/web2/statuscolor.css

/* Status Colours */

.statusnew {

color: #bb0000;
text-align: left;
font-weight: bold;

}

.statusopen {

color: #0000bb;
text-align: left;
font-weight: bold;

}

.statusreply {

color: #00bb00;
text-align: left;
font-weight: bold;

}

.statusresolved {

color: #888888;
text-align: left;
font-weight: bold;

}

.statusrejected {

color: #884444;
text-align: left;
font-weight: bold;

}

If I clean out my mason cache and restart my server, I still don’t see the css status values being picked up. Any hints as to where I might
be going astray here, anyone?

Richard Foley
Ciao - shorter than aufwiedersehen

Strangely, it doesn’t help when I do this either:

ls -l /opt/rt3/local/html/Callbacks/MyCallbacks/NoAuth/css/web2/main.css
insgesamt 8
-rw-r–r-- 1 qa_admin rt 28 25. Feb 17:03 End
-rw-rw-r-- 1 qa_admin rt 390 25. Feb 16:09 statuscolor.css

Richard Foley
Ciao - shorter than aufwiedersehen

You say your file is:
/opt/rt3/local/html/Callbacks/MyCallbacks/Elements/RT__Ticket/Columnmap/
Columnmap

That’s wrong. Columnmap should me ColumnMap in both instances.-----Original Message-----
From: Richard Foley [mailto:Richard.Foley@rfi.net]
Sent: 25 February 2009 16:07
To: rt-users@lists.bestpractical.com
Cc: Alex Young; Daniel Cook
Subject: Re: [rt-users] colorize status

Hi,

The code at http://wiki.bestpractical.com/view/ShowStatusInColor doesn’t
work for me. Possibly because the directories are confusingly
discussed. I’ve got 3 files:

/opt/rt3/local/html/Callbacks/MyCallbacks/Elements/RT__Ticket/Columnmap/
Columnmap

You say your file is:
/opt/rt3/local/html/Callbacks/MyCallbacks/Elements/RT__Ticket/Columnmap/
Columnmap

That’s wrong. Columnmap should me ColumnMap in both instances.

Hi Alex,

Having fixed the beginners mistake, (whoops :-] and thanks), I still have no joy. I must be doing something really daft. Perhaps I should
show the directory structure I have, and why (I find) the instructions are confusing. Because the instructions refer to the ‘directory
just created’, I have placed the statuscolor.css file in both the web2/ and the main.css/ directories, both under the
html/Callbacks/MyCallbacks tree and under the html/NoAuth tree, too (one of these is clearly wrong). Please re-read the instructions to see
how this can be misinterpreted - I’ve appended these below for reference. No doubt I’m reading this badly, but the end result is that this
leaves me with the following structure:

/opt/rt3/local/html # tree Callbacks/ NoAuth/
Callbacks/
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap |– ColumnMap
-- NoAuth– css
-- web2 |-- main.css | |-- End |– statuscolor.css
-- statuscolor.css NoAuth/– css
-- web2 |-- main.css | |-- End |– statuscolor.css
`-- statuscolor.css

Yes, I’m using the web2 theme and I’ve cleaned out the mason templates and restarted apache2, too, to no effect.

Richard Foley
Ciao - shorter than aufwiedersehen

* Create the directory: <RTInstallationDir>/local/html/Callbacks/<SiteCallbacks>/NoAuth/css/web2/main.css
* Create the file: <RTInstallationDir>/local/html/Callbacks/<SiteCallbacks>/NoAuth/css/web2/main.css/End 

And in that file, put:

@import “statuscolor.css”;

* In the directory just created '<RTInstallationDir>/local/html/NoAuth/css/web2' you will need to create a new file.
* Name the file statuscolor.css and place the following content in it. 

This is what I have:

/opt/rt3/local/html# tree Callbacks/ NoAuth/
Callbacks/
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap | |-- ColumnMap– NoAuth
-- css– web2
-- main.css– End
NoAuth/
-- css– web2
`-- statuscolor.cssFrom: Richard Foley [mailto:Richard.Foley@rfi.net]
Sent: 26 February 2009 12:55
To: Alex Young
Cc: rt-users@lists.bestpractical.com; Daniel Cook
Subject: Re: [rt-users] colorize status

You say your file is:

/opt/rt3/local/html/Callbacks/MyCallbacks/Elements/RT__Ticket/Columnmap/

Columnmap

That’s wrong. Columnmap should me ColumnMap in both instances.

Hi Alex,

Having fixed the beginners mistake, (whoops :-] and thanks), I still
have no joy. I must be doing something really daft. Perhaps I should
show the directory structure I have, and why (I find) the instructions
are confusing. Because the instructions refer to the ‘directory
just created’, I have placed the statuscolor.css file in both the web2/
and the main.css/ directories, both under the
html/Callbacks/MyCallbacks tree and under the html/NoAuth tree, too (one
of these is clearly wrong). Please re-read the instructions to see
how this can be misinterpreted - I’ve appended these below for
reference. No doubt I’m reading this badly, but the end result is that
this
leaves me with the following structure:

/opt/rt3/local/html # tree Callbacks/ NoAuth/
Callbacks/
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap |– ColumnMap
-- NoAuth– css
-- web2 |-- main.css | |-- End |– statuscolor.css
-- statuscolor.css NoAuth/– css
-- web2 |-- main.css | |-- End |– statuscolor.css
`-- statuscolor.css

Yes, I’m using the web2 theme and I’ve cleaned out the mason templates
and restarted apache2, too, to no effect.

Richard Foley
Ciao - shorter than aufwiedersehen

* Create the directory:

/local/html/Callbacks//NoAuth/css/web2
/main.css
* Create the file:
/local/html/Callbacks//NoAuth/css/web2
/main.css/End

And in that file, put:

@import “statuscolor.css”;

* In the directory just created

‘/local/html/NoAuth/css/web2’ you will need to create
a new file.
* Name the file statuscolor.css and place the following content in
it.

Hi Alex,

Thanks for that, that seems very close to what I had apart from the
duplicates, it’s identical now, so there must be something else dozy going
on. The css file is not picked up, and all my statuses continue to remain
black. I might give up for the moment and come back to this later, when
someone really wants it… Just FYI and for reference, here’s my current
dir structure.

/opt/rt3/local/html # tree Callbacks NoAuth
Callbacks
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap |– ColumnMap
-- NoAuth– css
-- web2– main.css
-- End NoAuth– css
-- web2– statuscolor.css

Richard Foley
Ciao - shorter than aufwiedersehen

I have attached the exact files I am using for you to try.

If you have cleared the mason cache and restarted Apache i dont know
what else to suggest. I have noticed that RT doesnt reload .css files
unless its had an apache restart, rather than reload. Also make sure you
clear your browser cache.From: Richard Foley [mailto:Richard.Foley@rfi.net]
Sent: 26 February 2009 13:56
To: Alex Young
Cc: rt-users@lists.bestpractical.com; Daniel Cook
Subject: Re: [rt-users] colorize status

Hi Alex,

Thanks for that, that seems very close to what I had apart from the
duplicates, it’s identical now, so there must be something else dozy
going
on. The css file is not picked up, and all my statuses continue to
remain
black. I might give up for the moment and come back to this later, when

someone really wants it… Just FYI and for reference, here’s my
current
dir structure.

/opt/rt3/local/html # tree Callbacks NoAuth
Callbacks
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap |– ColumnMap
-- NoAuth– css
-- web2– main.css
-- End NoAuth– css
-- web2– statuscolor.css

Richard Foley
Ciao - shorter than aufwiedersehen

This is what I have:

/opt/rt3/local/html# tree Callbacks/ NoAuth/
Callbacks/
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap | |-- ColumnMap– NoAuth
-- css– web2
-- main.css– End
NoAuth/
-- css– web2
`-- statuscolor.css

-----Original Message-----
From: Richard Foley [mailto:Richard.Foley@rfi.net]
Sent: 26 February 2009 12:55
To: Alex Young
Cc: rt-users@lists.bestpractical.com; Daniel Cook
Subject: Re: [rt-users] colorize status

You say your file is:

/opt/rt3/local/html/Callbacks/MyCallbacks/Elements/RT__Ticket/Columnmap/

Columnmap

That’s wrong. Columnmap should me ColumnMap in both instances.

Hi Alex,

Having fixed the beginners mistake, (whoops :-] and thanks), I still
have no joy. I must be doing something really daft. Perhaps I should

show the directory structure I have, and why (I find) the
instructions
are confusing. Because the instructions refer to the ‘directory
just created’, I have placed the statuscolor.css file in both the
web2/
and the main.css/ directories, both under the
html/Callbacks/MyCallbacks tree and under the html/NoAuth tree, too
(one
of these is clearly wrong). Please re-read the instructions to see
how this can be misinterpreted - I’ve appended these below for
reference. No doubt I’m reading this badly, but the end result is
that
this
leaves me with the following structure:

/opt/rt3/local/html # tree Callbacks/ NoAuth/
Callbacks/
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap |– ColumnMap
-- NoAuth– css
-- web2 |-- main.css | |-- End |– statuscolor.css
-- statuscolor.css NoAuth/– css
-- web2 |-- main.css | |-- End |– statuscolor.css
`-- statuscolor.css

Yes, I’m using the web2 theme and I’ve cleaned out the mason templates
and restarted apache2, too, to no effect.


Richard Foley
Ciao - shorter than aufwiedersehen

http://www.rfi.net/

* Create the directory:

/local/html/Callbacks//NoAuth/css/web2

/main.css
* Create the file:

/local/html/Callbacks//NoAuth/css/web2

/main.css/End

And in that file, put:

@import “statuscolor.css”;

* In the directory just created

‘/local/html/NoAuth/css/web2’ you will need to
create
a new file.
* Name the file statuscolor.css and place the following content in
it.

ColumnMap (3.89 KB)

End (28 Bytes)

statuscolor.css (513 Bytes)

I have attached the exact files I am using for you to try.

Hi Alex,

Thanks very much for those - they were not so very different from what I
started with (apart from the dupes :wink: I may go in and clarify the
instructions on the wiki with my misunderstandings in mind.

If you have cleared the mason cache and restarted Apache i dont know
what else to suggest. I have noticed that RT doesnt reload .css files
unless its had an apache restart, rather than reload. Also make sure you
clear your browser cache.

I did all that previously, nothing worked. Finally I was able to reinstall RT
and start from scratch, which is clearly not an ideal solution, but your
files then worked like a dream. Unfortunately I’m still unsure what the
actual reason for this non-functionality was but am somewhat suspicious of
having added a new status (pending) via RT_SiteConfig.pm. Perhaps this
shouldn’t have had any effect, but I’m not convinced as the approvals also
appear to be behaving somewhat better now (see other thread…)

Cheers.

Richard Foley
Ciao - shorter than aufwiedersehen

Hi,

Is it possible to change the subject color too?
If we have a ticket with a reply the color of the status column changes but I want the subject column also changes to the same color. Is this possible?

TIA,

Filipe Clemente
PortugalFrom: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Alex Young
Sent: quinta-feira, 26 de Fevereiro de 2009 14:04
To: Richard.Foley@rfi.net
Cc: Daniel Cook; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] colorize status

I have attached the exact files I am using for you to try.

If you have cleared the mason cache and restarted Apache i dont know what else to suggest. I have noticed that RT doesnt reload .css files unless its had an apache restart, rather than reload. Also make sure you clear your browser cache.

From: Richard Foley [mailto:Richard.Foley@rfi.net]
Sent: 26 February 2009 13:56
To: Alex Young
Cc: rt-users@lists.bestpractical.com; Daniel Cook
Subject: Re: [rt-users] colorize status

Hi Alex,

Thanks for that, that seems very close to what I had apart from the duplicates, it’s identical now, so there must be something else dozy going on. The css file is not picked up, and all my statuses continue to remain black. I might give up for the moment and come back to this later, when

someone really wants it… Just FYI and for reference, here’s my current dir structure.

/opt/rt3/local/html # tree Callbacks NoAuth Callbacks
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap |– ColumnMap
-- NoAuth– css
-- web2– main.css
-- End NoAuth– css
-- web2– statuscolor.css

Richard Foley
Ciao - shorter than aufwiedersehen

This is what I have:

/opt/rt3/local/html# tree Callbacks/ NoAuth/ Callbacks/
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap | |-- ColumnMap– NoAuth
-- css– web2
-- main.css– End
NoAuth/
-- css– web2
`-- statuscolor.css

-----Original Message-----
From: Richard Foley [mailto:Richard.Foley@rfi.net]
Sent: 26 February 2009 12:55
To: Alex Young
Cc: rt-users@lists.bestpractical.com; Daniel Cook
Subject: Re: [rt-users] colorize status

You say your file is:

/opt/rt3/local/html/Callbacks/MyCallbacks/Elements/RT__Ticket/Columnmap/

Columnmap

That’s wrong. Columnmap should me ColumnMap in both instances.

Hi Alex,

Having fixed the beginners mistake, (whoops :-] and thanks), I still
have no joy. I must be doing something really daft. Perhaps I should

show the directory structure I have, and why (I find) the
instructions
are confusing. Because the instructions refer to the ‘directory just
created’, I have placed the statuscolor.css file in both the
web2/
and the main.css/ directories, both under the
html/Callbacks/MyCallbacks tree and under the html/NoAuth tree, too
(one
of these is clearly wrong). Please re-read the instructions to see
how this can be misinterpreted - I’ve appended these below for
reference. No doubt I’m reading this badly, but the end result is
that
this
leaves me with the following structure:

/opt/rt3/local/html # tree Callbacks/ NoAuth/ Callbacks/
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap |– ColumnMap
-- NoAuth– css
-- web2 |-- main.css | |-- End |– statuscolor.css
-- statuscolor.css NoAuth/– css
-- web2 |-- main.css | |-- End |– statuscolor.css
`-- statuscolor.css

Yes, I’m using the web2 theme and I’ve cleaned out the mason templates
and restarted apache2, too, to no effect.


Richard Foley
Ciao - shorter than aufwiedersehen

http://www.rfi.net/

* Create the directory:

/local/html/Callbacks//NoAuth/css/web2

/main.css
* Create the file:

/local/html/Callbacks//NoAuth/css/web2

/main.css/End

And in that file, put:

@import “statuscolor.css”;

* In the directory just created

‘/local/html/NoAuth/css/web2’ you will need to
create
a new file.
* Name the file statuscolor.css and place the following content in
it.

Yes, I mean the background for that cellFrom: Filipe José Silva Clemente
Sent: segunda-feira, 9 de Março de 2009 14:54
To: 'Daniel Cook’
Subject: RE: [rt-users] colorize status

Yes, i mean the background for that cell.

From: Daniel Cook [mailto:dcook@finleysd.org]
Sent: segunda-feira, 9 de Março de 2009 14:47
To: Filipe José Silva Clemente
Subject: RE: [rt-users] colorize status

by subject column do you mean the background for that cell color?

Filipe José Silva Clemente filipe@sapia.uminho.pt 3/9/2009 4:53
AM >>>
Hi,

Is it possible to change the subject color too?
If we have a ticket with a reply the color of the status column changes
but I want the subject column also changes to the same color. Is this
possible?

TIA,

Filipe Clemente
Portugal

From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Alex
Young
Sent: quinta-feira, 26 de Fevereiro de 2009 14:04
To: Richard.Foley@rfi.net
Cc: Daniel Cook; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] colorize status

I have attached the exact files I am using for you to try.

If you have cleared the mason cache and restarted Apache i dont know
what else to suggest. I have noticed that RT doesnt reload .css files
unless its had an apache restart, rather than reload. Also make sure you
clear your browser cache.

From: Richard Foley [mailto:Richard.Foley@rfi.net]
Sent: 26 February 2009 13:56
To: Alex Young
Cc: rt-users@lists.bestpractical.com; Daniel Cook
Subject: Re: [rt-users] colorize status

Hi Alex,

Thanks for that, that seems very close to what I had apart from the
duplicates, it’s identical now, so there must be something else dozy
going on. The css file is not picked up, and all my statuses continue
to remain black. I might give up for the moment and come back to this
later, when

someone really wants it… Just FYI and for reference, here’s my
current dir structure.

/opt/rt3/local/html # tree Callbacks NoAuth Callbacks
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap |– ColumnMap
-- NoAuth– css
-- web2– main.css
-- End NoAuth– css
-- web2– statuscolor.css

Richard Foley
Ciao - shorter than aufwiedersehen

This is what I have:

/opt/rt3/local/html# tree Callbacks/ NoAuth/ Callbacks/
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap | |-- ColumnMap– NoAuth
-- css– web2
-- main.css– End
NoAuth/
-- css– web2
`-- statuscolor.css

-----Original Message-----
From: Richard Foley [mailto:Richard.Foley@rfi.net]
Sent: 26 February 2009 12:55
To: Alex Young
Cc: rt-users@lists.bestpractical.com; Daniel Cook
Subject: Re: [rt-users] colorize status

You say your file is:

/opt/rt3/local/html/Callbacks/MyCallbacks/Elements/RT__Ticket/Columnmap/

Columnmap

That’s wrong. Columnmap should me ColumnMap in both instances.

Hi Alex,

Having fixed the beginners mistake, (whoops :-] and thanks), I still

have no joy. I must be doing something really daft. Perhaps I
should

show the directory structure I have, and why (I find) the
instructions
are confusing. Because the instructions refer to the 'directory just

created’, I have placed the statuscolor.css file in both the
web2/
and the main.css/ directories, both under the
html/Callbacks/MyCallbacks tree and under the html/NoAuth tree, too
(one
of these is clearly wrong). Please re-read the instructions to see
how this can be misinterpreted - I’ve appended these below for
reference. No doubt I’m reading this badly, but the end result is
that
this
leaves me with the following structure:

/opt/rt3/local/html # tree Callbacks/ NoAuth/ Callbacks/
-- MyCallbacks |-- Elements |– RT__Ticket
| -- ColumnMap |– ColumnMap
-- NoAuth– css
-- web2 |-- main.css | |-- End |– statuscolor.css
-- statuscolor.css NoAuth/– css
-- web2 |-- main.css | |-- End |– statuscolor.css
`-- statuscolor.css

Yes, I’m using the web2 theme and I’ve cleaned out the mason
templates
and restarted apache2, too, to no effect.


Richard Foley
Ciao - shorter than aufwiedersehen

http://www.rfi.net/

* Create the directory:

/local/html/Callbacks//NoAuth/css/web2

/main.css
* Create the file:

/local/html/Callbacks//NoAuth/css/web2

/main.css/End

And in that file, put:

@import “statuscolor.css”;

* In the directory just created

‘/local/html/NoAuth/css/web2’ you will need to
create
a new file.
* Name the file statuscolor.css and place the following content
in
it.