Rt_summary_format

Is there any documentation on the summary string format when executing rt
from the command line?

shell>./rt --id=100 --summary “What_Is_The_Syntax?”

./rt -h
–summary [format-string]
show a listing-style summary of the tickets found. If format
string
is ommitted, uses $RT_SUMMARY_FORMAT or an internal default

Yesterday Nathan Evans wrote:

Is there any documentation on the summary string format when executing
rt from the command line?

shell>./rt --id=100 --summary “What_Is_The_Syntax?”

I don’t know if there’s any documentation, but a quick grep yields the
internal default:

%id4%status4%queue7%subject40%requestor16

Looks like it’s:

  • percent sign

  • name of field

  • field width

Smylers
GBdirect

this is from the RT Users Guide.

–summary [format-string] - Show a listing-style summary of the tickets
found. format-string is used to display particular information about a
ticket. It is made up of object specifiers whose format is %

object may be one of:
id
queue
subject
priority
final-priority
time-worked
time-left
status
owner
requestor
created
updated
due
told

width sets the column width of each object. Thus %subject20 will display the
first 20 characters of the subject line. If format string is ommitted, rt
will use the environment variable $RT_SUMMARY_FORMAT if it is set, or an
internal default. The default as of RT version 2.0.9 is:
%id4%status4%queue7%subject40%requestor16

RT also inserts two blank spaces between each column.