Custom field in Create.html

I am trying to add some custom fields into the RT system so that I can
associate tickets with actual machines. So far I have:

  1. modified the DB and added the coulumn in the Tickets table.

  2. edited the Create.html so that there is an input field.

  3. modified Ticket.pm and give a default value to be written to my new DB
    field

The results are thus:

When I submit a ticket, the default value from Ticket.pm is written to the
DB (good) but no data is getting from the input form to the DB (not good).

How are CGI posted data processed? I looked in lib/RT/Interface/Web.pm but
haven’t found the relevant pieces…any ideas on how I can get it to input
my customized form data?

TIA,

Samuel

The solution was in Display.html, by adding into the following hash:

my %create_args = (
Queue=>$ARGS{Queue},
Owner=>$ARGS{ValueOfOwner},
InitialPriority=> $ARGS{InitialPriority},
FinalPriority=> $ARGS{FinalPriority},
TimeLeft => $ARGS{TimeLeft},
TimeWorked => $ARGS{TimeWorked},
Requestor=> @Requestors,
Cc => @Cc,
AdminCc => @AdminCc,
Subject=>$ARGS{Subject},
Status=>$ARGS{Status},
Due => $due->ISO,
Starts => $starts->ISO,
MIMEObj => $MIMEObj
);-----Original Message-----
From: Samuel Dries-Daffner [mailto:sdaffner@taos.com]
Sent: Tuesday, May 21, 2002 9:37 AM
To: 'rt-users@lists.fsck.com’
Cc: 'rt-devel@lists.fsck.com’
Subject: [rt-devel] custom field in Create.html

I am trying to add some custom fields into the RT system so that I can
associate tickets with actual machines. So far I have:

  1. modified the DB and added the coulumn in the Tickets table.

  2. edited the Create.html so that there is an input field.

  3. modified Ticket.pm and give a default value to be written to my new DB
    field

The results are thus:

When I submit a ticket, the default value from Ticket.pm is written to the
DB (good) but no data is getting from the input form to the DB (not good).

How are CGI posted data processed? I looked in lib/RT/Interface/Web.pm but
haven’t found the relevant pieces…any ideas on how I can get it to input
my customized form data?

TIA,

Samuel

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