Showing custom fields with command line RT - Email found in subject

Stef,

I have been trying to work out this exact same thing for the past week now, in fact I put a similar post to this maillist approximately 3 days ago, with little assistance.

Thus far I have found the documentation that implies custom fields can be referenced by ‘CF-CustomFieldName’. However my testing of this results in nothing (at best I get a ‘:’ where asking for Status might give ‘Status: open’).

One thing I did find was that, in a documented example, if you asked for a verbose show of a ticket it would show custom field values along with the standard field values, however in my testing I only get the standard fields being shown.

I am now wondering if something has been changed in command-line rt that means the CF-CustomFieldName is still the correct syntax, but that the command-line rt can’t see custom-fields for display any more (it can still search, but can’t display them).

Jesse, do you have any insight in to this?

BenRFrom: rt-users-bounces@lists.bestpractical.com on behalf of Stef Morrell
Sent: Thu 13/03/2008 11:22 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Showing custom fields with command line RT - [Pork] Email found in subject

Hello,

Is there a way to show a custom field from the command line, along the
lines of:

rt show ticket/nn -f id,queue,subject,requestor,some_custom_field

Regards

Stef
Stefan Morrell | Operations Director
Tel: 0845 3452820 | Alpha Omega Computers Ltd
Fax: 0845 3452830 | Incorporating Level 5 Internet
stef@aoc-uk.com | stef@l5net.net

Alpha Omega Computers LTD computer network solution providers putting
the technology in place that makes your information work for you. Visit
our website for more information about how Alpha Omega can enhance your
business. IMPORTANT: This E-Mail is confidential and may also be
privileged. If you are not the intended recipient, please notify us
immediately by telephoning +44 (0) 845 345 2820. Internet communications
are not necessarily secure and may be intercepted or changed after they
are sent. Alpha Omega Computers LTD does not accept liability for any
such changes. If you wish to confirm the origin or content of this
communication, please contact the sender using an alternative means of
communication. In messages of a non-business nature, the views and
opinions of the author are their own and do not necessarily reflect the
views and opinions of the organisation.

Alpha Omega Computers Ltd, Unit 57, BBTC, Grange Road, Batley, WF17 6ER.
Registered in England No. 3867142. VAT No. GB734421454
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com 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 http://rtbook.bestpractical.com/

Stef,

I have been trying to work out this exact same thing for the past
week now, in fact I put a similar post to this maillist
approximately 3 days ago, with little assistance.

Thus far I have found the documentation that implies custom fields
can be referenced by ‘CF-CustomFieldName’. However my testing of
this results in nothing (at best I get a ‘:’ where asking for Status
might give ‘Status: open’).

One thing I did find was that, in a documented example, if you asked
for a verbose show of a ticket it would show custom field values
along with the standard field values, however in my testing I only
get the standard fields being shown.

I am now wondering if something has been changed in command-line rt
that means the CF-CustomFieldName is still the correct syntax, but
that the command-line rt can’t see custom-fields for display any
more (it can still search, but can’t display them).

That syntax works here

rt-3.6.6$ ./bin/rt show ticket/1 -f id,queue,CF-Testing
id: ticket/1
Queue: General
CF-Testing: testing value

Perhaps the user bin/rt is logging in as lacks permissions?

-kevin

Kevin,

Bingo! (Actually I’m somewhat miffed I didn’t think of this before). I
don’t supposed you know how to reference (using the CF-* syntax) custom
fields with spaces in their names?

BenR

[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
FalconeSent: Friday, 14 March 2008 3:20 AM
To: RT Users
Subject: Re: [rt-users] Showing custom fields with command line RT -
[Pork]Email found in subject - [Pork] Email found in subject