Hi Emmanuel,<br><br>try the following ideas.<br><br>1. After creating the "normal" Ticket this creates the approval ticket with your scrip/template. Then create a second scrip which sets the "normal" ticket to a new status (create a new status like "waiting") and don't add this new status to the QuickSearch List, so no user is able to find this ticket. Turn of in front the mail information about new tickets for this queue, so no user is informed about a new ticket until its approved.
<br><br>2. idea: create a "helper" queue where you create the "normal" tickets first without access for any user, after successful approval move the "normal" ticket to the correct queue.<br><br>
Both ways work fine i think.<br><br>Torsten<br><br><div><span class="gmail_quote">2007/11/2, Emmanuel Lacour <<a href="mailto:elacour@easter-eggs.com">elacour@easter-eggs.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I try to setup a simple approval mechanism, following the instructions<br>on the RT wiki.<br><br>My needs are simple I think:<br><br>have all new ticket comming in queue "foo" to be approved by anyone
<br>member of the rt group foo-manage.<br><br><br>Actually, it almost works, for each new ticket in foo queue, I see it in<br>the approval menu, members of foo-manage group get alert email, they can<br>approve it, _but_, without approving it, the ticket is already present in
<br>the "new tickets" list and we can already work with it :(<br>There is just a "Depends on" pointing to the ticket in foo-manage queue<br>in this ticket.<br><br>Any help? ;)<br><br><br>Here is what I did:
<br><br>So I created the queue foo-manage:<br><br>- watchers: group foo-manage<br>- added specific scripts from the default approval queue allong with my<br>  global scripts:<br><br>  - If an approval is rejected, reject the original and delete pending
<br>        approvals<br>  - When a ticket has been approved by all approvers, add correspondence<br>        to the original ticket<br>  - When a ticket has been approved by any approver, add correspondence<br>        to the original ticket
<br>  - When an approval ticket is created, notify the Owner and AdminCc of<br>        the item awaiting their approval<br><br>- added the templates for the previous scripts, copied from the default<br>  approval queue<br>
<br><br>In the queue "foo", I added this script: On create, Create tickets with<br>approvals template in trasactioncreate stage.<br><br>and the template "approvals":<br><br>===Create-Ticket: foo<br>Subject: Approve Foo Ticket: {$Tickets{'TOP'}->Subject}
<br>Depended-On-By: TOP<br>Queue: foo-manage<br>Type: approval<br>Owner: rt<br>AdminCC: {<br>   my $group_name  = 'foo-manage';<br>   my $groups      = RT::Groups->new( $RT::SystemUser );<br><br>   $groups->LimitToUserDefinedGroups();
<br>   $groups->Limit(<br>         'FIELD'    => 'Name',<br>         'OPERATOR' => '=',<br>         'VALUE'    => $group_name );<br>   $groups->First->Id;<br>}<br>
Content: Someone has created a foo ticket. Please review and approve it.<br>ENDOFCONTENT<br><br><br>--<br>Emmanuel Lacour ------------------------------------ Easter-eggs<br>44-46 rue de l'Ouest  -  75014 Paris   -   France -  Métro Gaité
<br>Phone: +33 (0) 1 43 35 00 37    -     Fax: +33 (0) 1 41 35 00 76<br>mailto:<a href="mailto:elacour@easter-eggs.com">elacour@easter-eggs.com</a>   -    <a href="http://www.easter-eggs.com">http://www.easter-eggs.com</a>
<br>_______________________________________________<br><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br><br>SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
<br><br>If you sign up for a new RT support contract before December 31, we'll take<br>up to 20 percent off the price. This sale won't last long, so get in touch today.<br>    Email us at <a href="mailto:sales@bestpractical.com">
sales@bestpractical.com</a> or call us at +1 617 812 0745.<br><br><br>Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a><br>Commercial support: <a href="mailto:sales@bestpractical.com">
sales@bestpractical.com</a><br><br><br>Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a><br></blockquote>
</div><br><br clear="all"><br>-- <br>MFG<br><br>Torsten Brumm<br><br><a href="http://www.torsten-brumm.de">http://www.torsten-brumm.de</a>