Mandatory Standard Fields

Using 3.8.1…

Would like to make some of the existing fields mandatory. In particular, Owner. For example, many tickets are being Resolved without actually Taking the ticket. Also, making the Subject mandatory. I saw a Javascript hack for this, but wondered if there was an easier way. Priority also…

Suggestions?

zbigniew,

I solved this by writing a global scrip that moves the creator of the 

transaction into the owner field when the ticket is resolved AND the
owner = nobody. I do the same thing for when a ticket is opened. That
way they don’t have to do a “take” and THEN own open it.

Kenn
LBNLOn 10/20/2008 4:32 PM, zbigniew@starpower.net wrote:

Using 3.8.1…

Would like to make some of the existing fields mandatory. In particular, Owner. For example, many tickets are being Resolved without actually Taking the ticket. Also, making the Subject mandatory. I saw a Javascript hack for this, but wondered if there was an easier way. Priority also…

Suggestions?


The rt-users Archives

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

   I solved this by writing a global scrip that moves the creator of the

transaction into the owner field when the ticket is resolved AND the
owner = nobody. I do the same thing for when a ticket is opened. That
way they don’t have to do a “take” and THEN own open it.

Can you post that to this list/the wiki, please? Sounds pretty useful,
to me.

RIchard

To all,

This can be found in many wiki examples, but since Richard asked, here 

it is:

set owner if Nobody

my $ticket = $self->TicketObj;
my $trans = $self->TransactionObj;
my $owner_id = $trans->CreatorObj->PrincipalId;

if ($ticket->OwnerObj->Name() eq ‘Nobody’ )
{
$ticket->SetOwner($owner_id, ‘Force’);
}

return 1;

There are, of course, variations for checking on the owner being 

“Nobody” like: $RT::Nobody->Id. But I think you all get the idea.

Kenn
LBNLOn 10/21/2008 8:02 AM, Richard Hartmann wrote:

On Tue, Oct 21, 2008 at 02:22, Kenneth Crocker KFCrocker@lbl.gov wrote:

   I solved this by writing a global scrip that moves the creator of the

transaction into the owner field when the ticket is resolved AND the
owner = nobody. I do the same thing for when a ticket is opened. That
way they don’t have to do a “take” and THEN own open it.

Can you post that to this list/the wiki, please? Sounds pretty useful,
to me.

RIchard