Re: [rt-users] stupid question (noob)

2011-01-10 Thread Joop

Chris Barnes wrote:


--> is there anyway for RT to indicate that there is "new information" 
in the ticket that we need to look at?


Yes, there is. I have a Callback for 
Elements/RT__Ticket/ColumnMap/ColumnMap which tags a 'New Reply' to a 
ticket in my homepage elements. I got it from the wiki and think it is 
related or belongs to the entry about colouring the status/priority.


I'll attach my ColumnMap just in case.

Regards,

Joop

<%INIT>

# 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 \"$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 = "$status New Reply";
}
else {
$status = "$status";
}

return \"$status";

}

# Show extended status in colour. This will change the front page and other 
search pages where the ExtendedStatus is displayed.
sub extStatusInColor {
my $Ticket = shift;
if ( my $count = $Ticket->HasUnresolvedDependencies ) {
my $status;

if ( $Ticket->HasUnresolvedDependencies( Type => 'approval' )
or $Ticket->HasUnresolvedDependencies( Type => 
'code' ) ) {
$status = "" . loc('(pending approval)') . "";
} else {
$status = "" . loc('(pending 
[quant,_1,other ticket])',$count) . "";
}
return \$status;
} else {
return statusInColor($Ticket);

}
}

# Set the priority numbers to a colour.
sub PriorityInColor {
my $Ticket = shift;

my $priority = $Ticket->Priority;
my $colors = undef;

# Change priority numbers to reflect your priority system.
if ($priority >= '50') {
$colors = "#FF";
} elsif ($priority >= '45') {
$colors = "#FF2000";
} elsif ($priority >= '40') {
$colors = "#FF4000";
} elsif ($priority >= '35') {
$colors = "#FF6A00";
} elsif ($priority >= '30') {
$colors = "#FF6600";
} elsif ($priority >= '25') {
$colors = "#FFA000";
} elsif ($priority >= '20') {
$colors = "#0033CC";
} elsif ($priority >= '15') {
$colors = "#809FFE";
} elsif ($priority >= '10') {
$colors = "#004600";
} elsif ($priority >= '5') {
$colors = "#006400";
} elsif ($priority >= '0') {
$colors = "#009000";
}

if ($colors) {
$priority = "$priority"
}

return \"$priority";
}

# Comment out any line to disable colour change.
$COLUMN_MAP->{Priority}->{value} = \&PriorityInColor;
$COLUMN_MAP->{Status}->{value} = \&statusInColor;
$COLUMN_MAP->{ExtendedStatus}->{value} = \&extStatusInColor;


<%ARGS>
$COLUMN_MAP => undef



Re: [rt-users] stupid question (noob)

2011-01-10 Thread Kevin Falcone
On Mon, Jan 10, 2011 at 04:29:15PM -0600, Chris Barnes wrote:
> We have just started using RT and are quite pleased with our initial
> impressions.   But there is one thing I *really* wish it would do
> and am hoping there is a configuration tweak I can make
> 
> There is an open ticket
> * We use the "Reply" link/button to get information back from the user
> * The user replies to the email message (properly keeping the
> subject line in-tact
> 
> --> is there anyway for RT to indicate that there is "new
> information" in the ticket that we need to look at?

You can have RT forward the email from the end user to the ticket
owner, or in the UI you could use LastUpdated/LastUpdateBy or
UpdateStatus on your saved search.

-kevin


pgpPSYAyrTsUh.pgp
Description: PGP signature


Re: [rt-users] stupid question (noob)

2011-01-10 Thread Landon Stewart
On Mon, Jan 10, 2011 at 2:29 PM, Chris Barnes  wrote:

> We have just started using RT and are quite pleased with our initial
> impressions.   But there is one thing I *really* wish it would do and am
> hoping there is a configuration tweak I can make
>
> There is an open ticket
> * We use the "Reply" link/button to get information back from the user
> * The user replies to the email message (properly keeping the subject line
> in-tact
>
> --> is there anyway for RT to indicate that there is "new information" in
> the ticket that we need to look at?
>

When I reply to the 'requestor' I mark the ticket status as "Stalled" unless
there's more I need to do before they get back to me with more information.
When they reply it will automatically be marked with a status of "Open"
again (as per a global Scrip).

Appart from that you can modify the ticket list to include the 'last updated
time' and 'last updated by' fields and even sort by the time field so you
can see the oldest first or something.

-- 
Landon Stewart 
SuperbHosting.Net by Superb Internet Corp.
Toll Free (US/Canada): 888-354-6128 x 4199
Direct: 206-438-5879
Web hosting and more "Ahead of the Rest": http://www.superbhosting.net


[rt-users] stupid question (noob)

2011-01-10 Thread Chris Barnes
We have just started using RT and are quite pleased with our initial 
impressions.   But there is one thing I *really* wish it would do and am 
hoping there is a configuration tweak I can make


There is an open ticket
* We use the "Reply" link/button to get information back from the user
* The user replies to the email message (properly keeping the subject 
line in-tact


--> is there anyway for RT to indicate that there is "new information" 
in the ticket that we need to look at?


--
Chris Barnes   AOL IM: CNBarnes
chris-bar...@tamu.eduYahoo IM: chrisnbarnes
Computer Systems Manager   MSN IM: ch...@txbarnes.com
Department of Physics  ph: 979-845-1379
Texas A&M University  fax: 979-845-2590