Package: rt4-clients
Version: 4.2.8-3
Severity: wishlist
Tags: patch upstream
Hi,
/usr/bin/rt has first-class commands for resolve, take, give etc:
$ rt give 12345 jmw
but not to stall, which requires a construction thus:
$ rt edit 12345 set status=stalled
As this is quite a common action, at least for me, please consider the
attached patch to add stall as a valid command, resulting in:
$ rt stall 12345
Thanks.
-- System Information:
Debian Release: 8.0
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates'), (500,
'proposed-updates'), (500, 'unstable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages rt4-clients depends on:
ii exim4 4.84-8
ii exim4-daemon-light [mail-transport-agent] 4.84-8
ii libterm-readkey-perl 2.32-1+b1
ii libterm-readline-perl-perl 1.0303-1
ii libwww-perl 6.08-1
ii perl 5.20.2-3
Versions of packages rt4-clients recommends:
ii libio-socket-ssl-perl 2.002-2
rt4-clients suggests no packages.
-- no debconf information
Index: request-tracker4-4.2.11-1/bin/rt
===================================================================
--- request-tracker4-4.2.11-1/bin/rt
+++ request-tracker4-4.2.11-1/bin/rt
@@ -137,9 +137,9 @@
grant => ["grant", "revoke"],
take => ["take", "steal", "untake"],
quit => ["quit", "exit"],
setcommand => ["del", "delete", "give", "res", "resolve",
- "subject"],
+ "stall", "subject"],
);
my %actions;
foreach my $fn (keys %handlers) {
@@ -754,8 +754,10 @@
if ( $action eq 'delete' or $action eq 'del' ) {
$what = "status=deleted";
} elsif ($action eq 'resolve' or $action eq 'res' ) {
$what = "status=resolved";
+ } elsif ($action eq 'stall' ) {
+ $what = "status=stalled";
} elsif ($action eq 'take' ) {
$what = "owner=$config{user}";
} elsif ($action eq 'untake') {
$what = "owner=Nobody";