<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>I am running Request
Tracker 3.0.10 and I am attempting to configure an action that will run on every
queue, but a queue called "Accounting." This action should On Resolve open
a ticket in the accounting queue to invoice for the time on the
ticket.</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>The problem is, when
the ticket for invoicing is resolved by the Accounting team a new ticket is
still opened. I would further like to have the ticket only created if the
custom field "Billable" is set to Yes.</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>In the Scrip I have
the following:</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2>==============================</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2> </DIV></FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>Description: Open
invoicing request in accounting queue</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>Condition: On
Resolve</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>Action: Create
Tickets</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004>Custom action preparation code:</SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>my $ticket =
$self->TicketObj;<BR>my $QueueName =
$TicketObj->QueueObj->Name;</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>if ($QueueName ne
'Accounting') {<BR> return(1);<BR>} else
{<BR> return(undef);<BR>}<BR></FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>Stage:
TransactionCreate</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>Template:
GlobalTemplate: Create invoice ticket on resolve</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2>==============================</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>In the template I
have the following:</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2>==============================</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004>===Create-Ticket: Invoice<BR>Subject: Ticket
to be invoiced {$Tickets{'TOP'}->Subject}<BR>Queue: Accounting<BR>RefersTo:
TOP<BR>Content: </SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=196034922-26092004>This ticket has been closed. Please
invoice as outlined below.</SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=196034922-26092004>Billable:
{$Ticket->FirstCustomFieldValue('Billable');} <BR>Service Type:
{$Ticket->FirstCustomFieldValue('ServiceType');} <BR>Time Worked:
{$Ticket->TimeWorked} minutes<BR>Description:
{$Tickets{'TOP'}->Subject}<BR>Ticket <URL:
{$RT::WebURL}Ticket/Display.html?id={$Ticket->id} ></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=196034922-26092004>ENDOFCONTENT<BR></SPAN></DIV>
<DIV><SPAN class=196034922-26092004></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2>==============================</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>Any help would be
greatly appreciated in resolving this problem.</FONT></SPAN></DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=196034922-26092004><FONT face=Arial size=2>
<DIV align=left><B><I><FONT size=2>
<P>David J. Schnardthorst</B></I><BR>Waves Corporation<BR>Phone: 314.974.0932 /
Fax: 636.410-0630<BR>Email: </FONT><A href="mailto:daves@wavesco.com"><U><FONT
color=#0000ff size=2>daves@wavesco.com</U></FONT></A><FONT
face=Arial><BR></FONT><A href="http://www.wavesco.com/"><U><FONT color=#0000ff
size=2>http://www.wavesco.com</U></FONT></A></P></DIV></DIV></FONT></SPAN></DIV></FONT></SPAN></DIV></FONT></SPAN></BODY></HTML>