[rt-devel] Re: Create ticket with CLI
Abhijit Menon-Sen
ams at wiw.org
Wed Oct 8 22:15:10 EDT 2003
At 2003-10-09 00:06:46 +0200, a.focareta at pro-netics.com wrote:
>
> How I can create a ticket with CLI?
1. "rt create -t ticket" should open $EDITOR with a form that you can
fill in and submit (i.e., save and exit).
2. "rt create -t ticket set subject=... priority=..." will create a
ticket without the form (of course, you can set other fields too).
Here's a patch to add these examples to "rt help create".
-- ams
--- bin/rt.in~ Thu Oct 9 07:39:37 2003
+++ bin/rt.in Thu Oct 9 07:42:07 2003
@@ -1611,10 +1611,17 @@
Examples:
+ # Interactive (starts $EDITOR with a form).
+ rt edit ticket/3
+ rt create -t ticket
+
+ # Non-interactive.
rt edit ticket/1-3 add cc=foo at example.com set priority=3
rt ls -t tickets -i 'Priority > 5' | rt edit - set status=resolved
rt edit ticket/4 set priority=3 owner=bar at example.com \
add cc=foo at example.com bcc=quux at example.net
+ rt create -t ticket subject='new ticket' priority=10 \
+ add cc=foo at example.com
--
More information about the Rt-devel
mailing list