< Day Day Up > |
rt edit [options] object-ids set field=value [field=value] ... add field=value [field=value] ... del field=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:
There are three subactions for specifying values for each object. Each set, add, or del specification must be a distinct argument, but a subaction can have as many field=value pairs as you want.
Certain object types also allow attributes to be modified or deleted. If you try to modify an immutable field, (for example, created), rt will return an appropriate message indicating the error. |
< Day Day Up > |