Barnowl-RT: Add rejected message shortcuts
authorPweaver (Paul Weaver) <pweaver@mit.edu>
Tue, 12 Nov 2013 03:12:42 +0000 (22:12 -0500)
committerPweaver (Paul Weaver) <pweaver@mit.edu>
Tue, 12 Nov 2013 03:12:42 +0000 (22:12 -0500)
rt/BarnOwl/lib/BarnOwl/Module/RT.pm

index 95b51a5ecc3af671d5f47d697b83343136804143..b4ee67ff0fcddcdec87c10e8a8b848f3f98fc413 100644 (file)
@@ -23,6 +23,7 @@ my %commands = (
     "status\\s(deleted|resolved|rejected|open|new|waiting)", "edit ticket/\$t set status=\$1",
     "(d|del|delete)", "edit ticket/\$t set status=deleted",
     "(r|res|resolve)", "edit ticket/\$t set status=resolved",
+    "(rej|reject|rejected)", "edit ticket/\$t set status=rejected",
     "show", "show -l ticket/\$t/history",
     "show (\\d+)", "show -l ticket/\$1/history",
     "list", 'rt list -o +Created "((Status=new or Status=stalled or Status=open) and (Queue=\'$q\'))"',
@@ -134,6 +135,7 @@ Examples:
            rt [set|add|del] <args> - runs rt (set|add|del) with relevent args - Dangerous if not careful
            rt [d|del|delete] - mark a ticket deleted
            rt [r|res|resolve] - mark a ticked resolved
+           rt [rej|reject|rejected] - mark a ticked rejected
            rt status [deleted|resolved|new|open|waiting|rejected] - set status of a ticket
            rt show - show detailed history of selected ticket
            rt show <ticket> - show history of <ticket>