Re: [rt-users] Remove Watchers on Owner Change

2009-11-02 Thread Seth Lake
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: sa...@bestpractical.com


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


[rt-users] Remove Watchers on Owner Change

2009-10-29 Thread Seth Lake
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: sa...@bestpractical.com


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


Re: [rt-users] Remove Watchers on Owner Change

2009-10-29 Thread Jerrad Pierce
On Thu, Oct 29, 2009 at 10:22, Seth Lake sl...@bcssi.com 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: sa...@bestpractical.com


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


Re: [rt-users] Remove Watchers on Owner Change

2009-10-29 Thread Jerrad Pierce
On Thu, Oct 29, 2009 at 10:22, Seth Lake sl...@bcssi.com 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: sa...@bestpractical.com


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


Re: [rt-users] Remove Watchers on Owner Change

2009-10-29 Thread Seth Lake
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:jpie...@cambridgeenergyalliance.org] 
Sent: Thursday, October 29, 2009 10:33 AM
To: Seth Lake
Cc: RT-Users@lists.bestpractical.com
Subject: Re: [rt-users] Remove Watchers on Owner Change

On Thu, Oct 29, 2009 at 10:22, Seth Lake sl...@bcssi.com 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: sa...@bestpractical.com


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