Passing values on ticket create

I would like to know if there is a way to pass a custom field value on
ticket create.
We have a internal billing system and one of the buttons is for a new
ticket.
I want to pass the customers account number as a custom field value to the
create screen in RT.
What is the best way to accomplish this…

Thanks.

– Kelly PRescott

prescott@wcoil.com wrote:

I would like to know if there is a way to pass a custom field value on
ticket create.
We have a internal billing system and one of the buttons is for a new
ticket.
I want to pass the customers account number as a custom field value to the
create screen in RT.
What is the best way to accomplish this…

Use the REST interface rather than POSTing to the web interface. That’s
what its for (and you can easily set custom fields that way).

The web interface may change with an upgrade, breaking your code; the REST
interface will not.

See REST - Request Tracker Wiki

There are REST client convenience libraries for perl (RT::Client::REST on
CPAN) and ruby (rt-client gem on rubyforge), or you can roll your own
directly to the REST interface fairly easily.

– ============================
Tom Lahti
BIT Statement LLC

(425)251-0833 x 117
http://www.bitstatement.net/
– ============================