Modification to Tickets/Update.html

My boss is a stickler for metrics so I updated Tickets/Update.html to
prevent anyone from resolving a ticket without specifying how long they
worked on it. Basically I replaced the if (resolved) block at the top
of <%INIT> with the following.

Thought others may appreciate it.

P.S. I have also updated the Ticket display so that rather than always
using minutes the time is displayed as X hours, X minutes if the time is
more than 60 minutes. I find that my tasks take between 4 - 7 hours to
complete so the minute display is just silly.

if ($DefaultStatus eq ‘resolved’) {
# if we are resolving a ticket and there has been no time submitted,
# do not allow the ticket to resolve. must check that SubmitTicket is
# set, or we prevent the close page from loading and thus NO ticket can
# be resolved.
if ((! defined($Ticket->TimeWorked) or $Ticket->TimeWorked == 0) and
$ARGS{‘UpdateTimeWorked’} == 0 and
exists $ARGS{SubmitTicket} ) {
Abort(“Must enter amount of time worked”);
}
$title = loc(“Resolve ticket #[_1] ([_2])”, $Ticket->id,
$Ticket->Subject);
} else {
$title = loc(“Update ticket #[_1] ([_2])”, $Ticket->id,
$Ticket->Subject);
}

Cool.
My boss is interested in Due dates.
What about to prevent blank due dates?

Jesse, what about to implement an option for a specific queue or also
global, with this 2 checks in the next releases?

Samuel-----Original Message-----
From: Sean Perry [mailto:sean.perry@intransa.com]
Sent: Friday,25 July,2003 00:31
To: rt-users@lists.fsck.com
Subject: [rt-users] modification to Tickets/Update.html

My boss is a stickler for metrics so I updated Tickets/Update.html to
prevent anyone from resolving a ticket without specifying how long they
worked on it. Basically I replaced the if (resolved) block at the top
of <%INIT> with the following.

Thought others may appreciate it.

P.S. I have also updated the Ticket display so that rather than always
using minutes the time is displayed as X hours, X minutes if the time is

more than 60 minutes. I find that my tasks take between 4 - 7 hours to
complete so the minute display is just silly.

if ($DefaultStatus eq ‘resolved’) {
# if we are resolving a ticket and there has been no time
submitted,
# do not allow the ticket to resolve. must check that SubmitTicket
is
# set, or we prevent the close page from loading and thus NO ticket
can
# be resolved.
if ((! defined($Ticket->TimeWorked) or $Ticket->TimeWorked == 0)
and
$ARGS{‘UpdateTimeWorked’} == 0 and
exists $ARGS{SubmitTicket} ) {
Abort(“Must enter amount of time worked”);
}
$title = loc(“Resolve ticket #[_1] ([_2])”, $Ticket->id,
$Ticket->Subject);
} else {
$title = loc(“Update ticket #[_1] ([_2])”, $Ticket->id,
$Ticket->Subject);
}

rt-users mailing list
rt-users@lists.fsck.com http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm