[rt-users] Show Tickets owned by a Group

Ruslan Zakirov ruz at bestpractical.com
Fri Jun 15 11:57:13 EDT 2012


2012/6/15 Michele Pinassi <michele.pinassi at unisi.it>:
> Hi all,
>
> there's a way to have a "widget", in dahsboard, that shows all tickets
> owned by a group ?

No, but it's very easy to implement as RT already has RequestorGroup,
CcGroup, AdminCcGroup and WatcherGroup searches. Probably the
following patch will work. One limitation - you must use group ID and
can not use Name. After applying patch, restarting web server, try
"OwnerGroup = 12345" from Advanced tab.

diff --git a/lib/RT/Tickets.pm b/lib/RT/Tickets.pm
index fbb5dc9..8e8c704 100644
--- a/lib/RT/Tickets.pm
+++ b/lib/RT/Tickets.pm
@@ -146,6 +146,7 @@ our %FIELD_METADATA = (
     CustomField      => [ 'CUSTOMFIELD', ], #loc_left_pair
     CF               => [ 'CUSTOMFIELD', ], #loc_left_pair
     Updated          => [ 'TRANSDATE', ], #loc_left_pair
+    OwnerGroup       => [ 'MEMBERSHIPFIELD' => 'Owner', ], #loc_left_pair
     RequestorGroup   => [ 'MEMBERSHIPFIELD' => 'Requestor', ], #loc_left_pair
     CCGroup          => [ 'MEMBERSHIPFIELD' => 'Cc', ], #loc_left_pair
     AdminCCGroup     => [ 'MEMBERSHIPFIELD' => 'AdminCc', ], #loc_left_pair




>
> Thanks, Michele
>
> --
> Michele Pinassi
> Responsabile Telefonia di Ateneo
> Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi
> di Siena
> tel: 0577.(23)2169 - fax: 0577.(23)2053
>



-- 
Best regards, Ruslan.



More information about the rt-users mailing list