Extract custom fields from tickets using commandline - Email found in subject

Dan,

Thanks for the reply. I’ve done a whole bunch of perl hacking to and around RT, but given I can “cut-and-paste” the query field in the ‘Advanced’ descriptor of a query (generated via the web interface) I was hoping there might be a similar thing that could be done with the displayed fields. This would save me doing yet more perl hacking.

I was able to get individual values back using ‘-f’, for example ‘-f Status’ would show me the ticket id’s that matched the query with their Statuses, but ‘-f CF.{Field name}’ with any combination of quotes, or CustomField instead of CF, resulted in only errors.

So, so far, it seems that ‘-f’ was intended to fill what I need, but can someone confirm whether I can specify a custom field, instead of a default field?

BenRFrom: Daniel Koo [mailto:dank@bulletproof.net]
Sent: Wed 12/03/2008 6:12 PM
To: Ben Robson
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Extract custom fields from tickets using commandline - [Pork] Email found in subject

Hi Ben,

For something more involved than what the rt tool can give you I’d write
a script in Perl using the RT library. (Which is what ‘rt’ is, but it’s
more generic)

cheers

Dan