Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

Remove Watchers on Owner Change

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


slake at bcssi

Oct 29, 2009, 7:22 AM

Post #1 of 5 (664 views)
Permalink
Remove Watchers on Owner Change

Looking for a way (scrip?) to remove non-owner/requester/admin CCs on
take or ownership change.

We have a big group of CCs when a ticket comes in, once one of the
helpdesk group takes the ticket I want the people that aren't directly
involved out off the watchers list.

Thanks!
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


jpierce at cambridgeenergyalliance

Oct 29, 2009, 7:31 AM

Post #2 of 5 (628 views)
Permalink
Re: Remove Watchers on Owner Change [In reply to]

On Thu, Oct 29, 2009 at 10:22, Seth Lake <slake [at] bcssi> wrote:
> Looking for a way (scrip?) to remove non-owner/requester/admin CCs on
> take or ownership change.
>
> We have a big group of CCs when a ticket comes in, once one of the
> helpdesk group takes the ticket I want the people that aren't directly
> involved out off the watchers list.
Look at my squelch remote recipients scrip as a starting point?

http://www.gossamer-threads.com/lists/rt/users/88831?nohighlight=1#88831

--
Cambridge Energy Alliance: Save money. Save the planet.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


jpierce at cambridgeenergyalliance

Oct 29, 2009, 7:32 AM

Post #3 of 5 (623 views)
Permalink
Re: Remove Watchers on Owner Change [In reply to]

On Thu, Oct 29, 2009 at 10:22, Seth Lake <slake [at] bcssi> wrote:
> Looking for a way (scrip?) to remove non-owner/requester/admin CCs on
> take or ownership change.
>
> We have a big group of CCs when a ticket comes in, once one of the
> helpdesk group takes the ticket I want the people that aren't directly
> involved out off the watchers list.
Look at my squelch remote recipients scrip as a starting point?

http://www.gossamer-threads.com/lists/rt/users/88831?nohighlight=1#88831

--
Cambridge Energy Alliance: Save money. Save the planet.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


slake at bcssi

Oct 29, 2009, 7:46 AM

Post #4 of 5 (624 views)
Permalink
Re: Remove Watchers on Owner Change [In reply to]

This works to strip out all the watchers, how to add back in the owner ?
I'm terrible at this hacking thing?

foreach my $address (
$self->TicketObj->QueueObj->Cc->MemberEmailAddresses ){
$self->TicketObj->SquelchMailTo($address);
}



-----Original Message-----
From: Jerrad Pierce [mailto:jpierce [at] cambridgeenergyalliance]
Sent: Thursday, October 29, 2009 10:33 AM
To: Seth Lake
Cc: RT-Users [at] lists
Subject: Re: [rt-users] Remove Watchers on Owner Change

On Thu, Oct 29, 2009 at 10:22, Seth Lake <slake [at] bcssi> wrote:
> Looking for a way (scrip?) to remove non-owner/requester/admin CCs on
> take or ownership change.
>
> We have a big group of CCs when a ticket comes in, once one of the
> helpdesk group takes the ticket I want the people that aren't directly
> involved out off the watchers list.
Look at my squelch remote recipients scrip as a starting point?

http://www.gossamer-threads.com/lists/rt/users/88831?nohighlight=1#88831

--
Cambridge Energy Alliance: Save money. Save the planet.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


slake at bcssi

Nov 2, 2009, 2:22 PM

Post #5 of 5 (579 views)
Permalink
Re: Remove Watchers on Owner Change [In reply to]

Here's what I ended up with, take everyone off the mail group then add
in the new owner...


foreach my
$address($self->TicketObj->QueueObj->Cc->MemberEmailAddresses){
$self->TicketObj->SquelchMailTo($address);
}
if($self->TicketObj->OwnerObj->Id != $RT::Nobody->id){
$self->TicketObj->AddWatcher(
Type=>"Cc",
PrincipalId=>$self->TicketObj->OwnerObj->Id
);
}
$self->TicketObj->UnsquelchMailTo($self->TicketObj->OwnerObj->EmailAddre
ss);



_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.