Set colour tickets by priority

Hi,

I’m using rt 4.04
I want to color the tickets by priority, so I follow this tutorial:

http://requesttracker.wikia.com/wiki/ShowStatusInColor

But don’t work… I don’t know ifI haven’t done well or it doesn’t work
in RT4.X.
Someone can try and confirm it works? If not, there is an alternative to
putting color on the ticket as a priority in RT 4.X?

Thanks and best regards

Daniel


/ / Daniel Garc�a Mej�a
C E / S / C A Portals i Repositoris
/_/ Centre de Serveis Cient�fics i Acad�mics de Catalunya

Gran Capit�, 2-4 (Edifici Nexus) - 08034 Barcelona
T. (NULL) - F. 93 205 6979 - dgarcia@cesca.cat

Hi,

The tutorial doesn’t work for me on 4.0.5. I’m also trying to find an alternative.

The code I’m putting in /local/html/Callbacks/MyCallbacks/Elements/RT__Ticket/ColumnMap/ColumnMap is being seen, because if I make a deliberate error it fails to compile, but it doesn’t seem to make any difference.

There must be people who have upgraded to 4.0.* who want to keep this feature, hopefully someone can help us.

Regards,

GuyFrom: rt-users-bounces@lists.bestpractical.com on behalf of Daniel Garcia Mejia
Sent: Mon 27/02/2012 09:34
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Set colour tickets by priority

Hi,

I’m using rt 4.04
I want to color the tickets by priority, so I follow this tutorial:

http://requesttracker.wikia.com/wiki/ShowStatusInColor

But don’t work… I don’t know ifI haven’t done well or it doesn’t work
in RT4.X.
Someone can try and confirm it works? If not, there is an alternative to
putting color on the ticket as a priority in RT 4.X?

Thanks and best regards

Daniel


/ / Daniel García Mejía
C E / S / C A Portals i Repositoris
/_/ Centre de Serveis Científics i Acadèmics de Catalunya

Gran Capità, 2-4 (Edifici Nexus) - 08034 Barcelona
T. (NULL) - F. 93 205 6979 - dgarcia@cesca.cat

RT Training Sessions (http://bestpractical.com/services/training.html)

  • Boston March 5 & 6, 2012

Please consider the environment before printing this email.

This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it immediately.

Statements of intent shall only become binding when confirmed in hard copy by an authorised signatory.

The contents of this email may relate to dealings with other companies under the control of BAE Systems plc details of which can be found at Our businesses | BAE Systems | International.

Detica Limited is a BAE Systems company trading as BAE Systems Detica.
Detica Limited is registered in England and Wales under No: 1337451.
Registered office: Surrey Research Park, Guildford, Surrey, GU2 7YP, England.

if you do not insist to use the priority system from RT with 0-100 you may
have a look at this plugin:

best regards

john s.
View this message in context: http://old.nabble.com/Set-colour-tickets-by-priority-tp33398651p33412737.html

Hi,

The tutorial doesn’t work for me on 4.0.5. I’m also trying to find an alternative.

The code I’m putting in /local/html/Callbacks/MyCallbacks/Elements/RT__Ticket/ColumnMap/ColumnMap is being seen, because if I make a deliberate error it fails to compile, but it doesn’t seem to make any difference.

There must be people who have upgraded to 4.0.* who want to keep this feature, hopefully someone can help us.

I’ve been struggling with that too. In fact, it does work, in my hands, but only on additional custom searches that I add to my home page or to a dashboard. It doesn’t work on the default searches, which suggests that the code path for those is slightly different, but I haven’t determined in what way they differ.

One place that Wiki entry needs updating, if you look at the underlying code, is that ColumnMap is the old name for the callback. It’s still being called for backward compatibility under the old name. If you want to use the new name, in RT 4 it’s now called Once (for the simple reason that it only actually needs to be run once, when the perl code is compiling, to set up your column mappings).

Tim

The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.

I just updated to RT4.0.5 and managed to get it working.

I used the ‘Full featured ColumnMap script’ from the wiki:
http://requesttracker.wikia.com/wiki/ShowStatusInColor

It’s about a 3rd down the page, with a title of RT 3.8.x and written by
me quite a while ago.

Changes the paths to edit the new template and added a new colour for
.statusstalled and that was all the changes needed on my install.From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Tim Cutts
Sent: 29 February 2012 10:35
To: Jeffery, Guy
Cc: rt-users@lists.bestpractical.com; Daniel Garcia Mejia
Subject: Re: [rt-users] Set colour tickets by priority

Hi,

The tutorial doesn’t work for me on 4.0.5. I’m also trying to find an
alternative.

The code I’m putting in
/local/html/Callbacks/MyCallbacks/Elements/RT__Ticket
/ColumnMap/ColumnMap is being seen, because if I make a deliberate error
it fails to compile, but it doesn’t seem to make any difference.

There must be people who have upgraded to 4.0.* who want to keep this
feature, hopefully someone can help us.

I’ve been struggling with that too. In fact, it does work, in my
hands, but only on additional custom searches that I add to my home page
or to a dashboard. It doesn’t work on the default searches, which
suggests that the code path for those is slightly different, but I
haven’t determined in what way they differ.

One place that Wiki entry needs updating, if you look at the underlying
code, is that ColumnMap is the old name for the callback. It’s still
being called for backward compatibility under the old name. If you want
to use the new name, in RT 4 it’s now called Once (for the simple reason
that it only actually needs to be run once, when the perl code is
compiling, to set up your column mappings).

Tim

The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
RT Training Sessions (http://bestpractical.com/services/training.html)

  • Boston March 5 & 6, 2012

I just updated to RT4.0.5 and managed to get it working.

I used the ‘Full featured ColumnMap script’ from the wiki:
http://requesttracker.wikia.com/wiki/ShowStatusInColor

It’s about a 3rd down the page, with a title of RT 3.8.x and written by
me quite a while ago.

Changes the paths to edit the new template and added a new colour for
.statusstalled and that was all the changes needed on my install.

The reason, I found, that it wasn’t always working, is that a lot of the standard search portlets use the ExtendedStatus column rather than the Status column, and so the ColumnMap callback needs to be modified to do stuff with ExtendedStatus too.

I also discovered you need to modify it not to do anything if you have users wanting to export searches as spreadsheets, because the HTML in the wiki example persists into your spreadsheet.

Tim

The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.

Tim,

I also discovered you need to modify it not to do anything if you have
users
wanting to export searches as spreadsheets, >because the HTML in the wiki
example
persists into your spreadsheet.

How can it be done selectively? Is it only through HTTP request details and
checking what URL was called (not sure if possible - just guessing) or did
you find any smarter way to do it?

Maciek