<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Bjørn.<br>
<br>
Bjørn Skovlund Rydén wrote:
<blockquote
 cite="mid28612698BFE51241AB8EF079C3230A8B432C1E@EXC-1.247ms.com"
 type="cite">
  <pre wrap="">Hi Luke

Did you find a solution to this problem? I'm looking for the same thing, more or less.

I want to inform a group of people whenever a ticket is created. I got this far:


my $users = new RT::Users($RT::SystemUser);
$users->MemberOfGroup("2061");
while( my $user = $users->Next )
{
   $RT::Logger->info( "Found member of group: ". $user->Name );
}

This is Custom Action - but I don't know how to pass these users I find on to a template.
  </pre>
</blockquote>
I deleted the user as admincc then added them in the template:<br>
Then as Jesse suggested:<br>
<br>
Create a scrip with<br>
/~~~~~~~~~~~~~~~~~~~~~~~~<br>
Condition: On Create<br>
Action: Notify Other Recipients<br>
Template: my custom template<br>
Stage: TransactionCreate<br>
\________________________<br>
<br>
The template looks like this:<br>
(basically a copy of the transaction template)<br>
/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
To: foo@bar<br>
Subject: { $Ticket->Subject() }<br>
<br>
<br>
{$Transaction->CreatedAsString}: Request {$Ticket->id} was acted
upon.<br>
Transaction: {$Transaction->Description}<br>
       Queue: {$Ticket->QueueObj->Name}<br>
     Subject: {$Transaction->Subject || $Ticket->Subject || "(No
subject given)"}<br>
       Owner: {$Ticket->OwnerObj->Name}<br>
  Requestors: {$Ticket->RequestorAddresses}<br>
      Status: {$Ticket->Status}<br>
 Ticket <URL: {$RT::WebURL}Ticket/Display.html?id={$Ticket->id}
><br>
<br>
<br>
{$Transaction->Content()}<br>
\_________________________________<br>
<br>
Hope this helps.<br>
Kind regards.<br>
<br>
Luke.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<blockquote
 cite="mid28612698BFE51241AB8EF079C3230A8B432C1E@EXC-1.247ms.com"
 type="cite">
  <pre wrap="">Cheers, Bjørn


  </pre>
  <blockquote type="cite">
    <pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:rt-users-bounces@lists.bestpractical.com">rt-users-bounces@lists.bestpractical.com</a> [<a class="moz-txt-link-freetext" href="mailto:rt-users">mailto:rt-users</a>-
<a class="moz-txt-link-abbreviated" href="mailto:bounces@lists.bestpractical.com">bounces@lists.bestpractical.com</a>] On Behalf Of Luke Vanderfluit
Sent: 19. februar 2006 23:48
To: <a class="moz-txt-link-abbreviated" href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a>
Subject: [rt-users] send email to a few people on ticket create

Hi.

In one queue I need to send an email to 2 people, only when a ticket is
created.

They shouldn't receive emails on correspond or on comment.

So I think I should write a custom scrip for that queue, right?

Any tips would be appreciated.

Thanks.
Kind regards.

--
Luke

_______________________________________________
<a class="moz-txt-link-freetext" href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a>

Be sure to check out the RT Wiki at <a class="moz-txt-link-freetext" href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a>

Download a free sample chapter of RT Essentials from O'Reilly Media at
<a class="moz-txt-link-freetext" href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a>

WE'RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at
<a class="moz-txt-link-freetext" href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Luke
</pre>
</body>
</html>