Name
edit
Synopsis
rt edit [options]object-idssetfield=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
STDINinstead of the command line. Object IDs are not simply theidbut the combination of objecttypeand the objectid:ticket/42
-
-ttype Specifies one of the valid RT object types:
ticket,user,group,queue. This option also takes thetype/idform.-
-i Read a completed form from
STDINbefore submitting. This enables you to provide the manipulated input from a script or prepared form. The-ooption is one way to generate a prepared form.-
-o Dump the completed form to
STDOUTinstead of submitting. This provides a filled out form that you can copy and/or modify before returning it to rt. The-ioption is one ...
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