Name
edit
Synopsis
rt edit [options
]object-ids
setfield=value
[field
=value
] ... addfield
=value
[field
=value
] ... delfield
=value
[field
=value
] ...
The edit
action modifies the information for one or more objects. The ed
action is another name for edit
. It typically starts an editor enabling you to edit object data in a plain-text form. With the create
action the form is mostly filled with default or blank values. Once the form is written and closed, rt modifies or creates the object, as appropriate. The $EDITOR
environment variable selects which editor rt
will use; it defaults to vi
.
If the command line passes enough information, rt submits the form directly to the RT server without any further interaction. The -e
option guarantees you get the interactive editor no matter what you pass on the command line.
The edit
and create
actions have several options:
-
-
Read object IDs from
STDIN
instead of the command line. Object IDs are not simply theid
but the combination of objecttype
and the objectid
:ticket/42
-
-t
type
Specifies one of the valid RT object types:
ticket
,user
,group
,queue
. This option also takes thetype/id
form.-
-i
Read a completed form from
STDIN
before submitting. This enables you to provide the manipulated input from a script or prepared form. The-o
option is one way to generate a prepared form.-
-o
Dump the completed form to
STDOUT
instead of submitting. This provides a filled out form that you can copy and/or modify before returning it to rt. The-i
option is one ...
Get RT Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.