Require entry in Worked: field

I’m sure this has been done, just can’t seem to find it on the
documentation.
What mods do I need to make to require this entry?

Thanks

ooohhhh…good question. I’m sure my bosses would love to see me
implement this as well. I look forward to the answer.

Mathew

Don Beethe wrote:

Hi Don,

You are correct, this has been done before. We currently insist on
Worked field being at least 1 minute.

try Request Tracker Wiki

Rik

Message: 1
Date: Wed, 14 Feb 2007 16:04:11 -0600
From: “Don Beethe” dmbeethe@fedex.com
Subject: [rt-users] Require entry in Worked: field
To: rt-users@lists.bestpractical.com
Message-ID:
CBFD49490FF183498C0C74C2317C7FE507317F3D@MEMEXCH06V.corp.ds.fedex.com

Content-Type: text/plain; charset=“us-ascii”

I’m sure this has been done, just can’t seem to find it on the
documentation.
What mods do I need to make to require this entry?

Thanks

Richard Ellis
.Sun B2B Operations
Sun Microsystems x24727

We also have this in our local/html/Ticket/Update.html

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($TicketObj->TimeWorked) or $TicketObj->TimeWorked ==
0) and
$ARGS{‘UpdateTimeWorked’} <= 0 and
exists $ARGS{‘SubmitTicket’} ) {
Abort(“You cannot resolve a ticket with zero time worked.
Please reselect the ticket and try again”);
}

Hope it helps

Rik

We also have this in our local/html/Ticket/Update.html

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($TicketObj->TimeWorked) or $TicketObj->TimeWorked ==
0) and
$ARGS{‘UpdateTimeWorked’} <= 0 and
exists $ARGS{‘SubmitTicket’} ) {
Abort(“You cannot resolve a ticket with zero time worked. Please
reselect the ticket and try again”);
}

An alternate approach would be to use JavaScript. I have done this to
make Subject a mandatory field. Both approaches have strong pluses and
minuses, and it may come down to a simple question of aesthetics. The
JavaScript approach is shown here:

http://wiki.bestpractical.com/index.cgi?MandatorySubject

Regards,

joe
Joe Casadonte
joe.casadonte@oracle.com

========== ==========
== The statements and opinions expressed here are my own and do not ==
== necessarily represent those of Oracle Corporation. ==
========== ==========