Matt,<br><br>I'm not sure I got this right, but it sounds like the "others" are NOT getting a notification when the "Requestor" is NOT a member in the specified Admin Group. Ticket correspondence can be a little difficult to deal with, but remembering a few concepts will help:<br>
<br>1) <i>Queue Watcher</i> "Cc's" and <i>Ticket</i> "Cc's" are <b>NOT</b> considered "Others" by RT. They will always be "Cc's" as far as recipients of correspondence <i>sent by RT</i>.<br>
2) "Others" are always an email address or a UserID you enter into or add to the "Cc" line at the moment of creating a "reply" from a ticket (or an email address you have in a template).<br>3) RT always executes scrips in alphabetical order <i>by name</i>.<br>
<br>Therefore, at the time of ticket creation, there is no "Other" person to receive an email notification from that initial creation, unless you have a template that overrides "To:" with some address you create from transaction/ticket data (including a Custom Field). Perhaps you want your scrip to "Notify Cc's"?<br>
<br>I have a scrip that takes the members of a group and adds them to the "Cc" list of a ticket (based on certain conditions), so they will be considered as "Cc's" for any correspondence from that ticket. It's important to understand the timing of the execution of these scrips (# 3 above). I add these "Cc's" in the <i>Custom Prep Code</i> section AND I make sure that the execution of the scrip is alphabetically sequenced <i>before any notification scrip</i> could be triggered. I name all my scrips that <i>add/modify data</i> in tickets/transactions with a number followed by a letter (ie. 1a, 1b, 1c) that way all the 1a's get executed before any 1b's or 1c's and definitely before any "Notify xxx".<br>
<br>Therefore, I have a scrip that add's "Cc's" to the ticket named "1b Add Group to Cc" ("1b" because I have some other "1a" scrips I want executed before it) and then another scrip that is named "Notify Cc's on Create". The "1b" scrip gets executed first, adding "Cc's" to the ticket info and then the "Notify Cc's" scrip will be triggered and <i>every address that is listed</i> as a Queue or Ticket "Cc" will get the notification. Viola'.<br>
<br>Obviously, you will want to have a custom condition to NOT send a notification based on your requirements, but I think you can get the "gist" of what I'm explaining and use it.<br><br>Hope this helps.<br>
<br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Fri, Jul 15, 2011 at 2:36 PM, Matt Brennan <span dir="ltr"><<a href="mailto:brennanma@gmail.com">brennanma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Greetings,<br>
<br>
  This one has been stumping me for a week now so I figure it's time<br>
to ask for help. I am trying to create two scrips, neither of which I<br>
can get to work. The first and more important is to notify "other<br>
recipients" only if the ticket was not submitted by a member of the<br>
queue managers group for the appropriate queue.<br>
<br>
  I.E. A user submits a ticket in the ServerAdmin queue, the queue<br>
managers for that queue get notified. However, if I submit a ticket in<br>
that queue, the rest of the queue managers should not be notified.<br>
Notifying the group is not an issue, however whenever I submit a<br>
ticket it still causes notification. The User Defined condition I have<br>
is:<br>
<br>
if ($self->TransactionObj->Type eq 'Create') {<br>
  my $GroupObj = RT::Group->new( $RT::SystemUser );<br>
  $GroupObj->LoadUserDefinedGroup( $self->TicketObj->QueueObj->Name );<br>
  if ($GroupObj->HasMemberRecursively( $self->CurrentUser->PrincipalObj )) {<br>
    return 0;<br>
  }<br>
  return 1;<br>
}<br>
<br>
The LoadUserDefinedGroup paramater should be correct -- I have the<br>
group for queue managers named identical to the queue.<br>
<br>
Thanks,<br>
Matt Brennan<br>
<br>
--------<br>
2011 Training: <a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a><br>
</blockquote></div><br>