Name
show
Synopsis
rt show [options] <object-ids>
The
show action displays one or more objects identified by a unique alphanumeric object id. When referring to an RT object, remember that tickets only have numeric IDs, while users, groups, and queues have both numeric and alphanumeric identifiers that you can use interchangeably.
The show action has several options that may be used to improve the display of the requested object, depending on the relevance of each field in the current circumstances.
-
- Read object IDs from
STDINinstead of the command line. Note that this is not simply theidbut the combination of objecttypeand the objectid, orids:ticket/42
or
ticket/1,12-33,42 . . .
-
-ttype Specifies one of the valid RT object types:
ticket,user,group,queue.-
-fa,b,c Restrict the display to the specified fields. These fields are not case-sensitive, but they need to be explicitly named in full, or RT will return empty fields in their place.
-
-Svar=val Submits the specified variable with the request.
Although supplying an object type is required, RT will accept the type in the type/id form with multiple IDs separated by commas:
ticket/12,24,72
or in the -t
type id form with multiple IDs separated by whitespace:
-t ticket 12 24 72
To give a range of IDs, use a - (dash) to separate the minimum and maximum numeric ID values:
ticket/12,24-30,72
-t ticket 12 24-30 72
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access