<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18975"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV>sorry, I don't understand how to consider the Ticket Creating.<BR>Can you assist me ?</DIV>
<DIV> </DIV>
<DIV>Thanks a lot</DIV>
<DIV>Horst<BR><BR>>>> Le Mardi, 29. Juin 2010 à 17:01, Kevin Falcone <falcone@bestpractical.com> a écrit :<BR></DIV>
<TABLE style="MARGIN: 0px 0px 0px 15px; FONT-SIZE: 1em" border=0 bgColor=#f3f3f3>
<TBODY>
<TR>
<TD>
<DIV style="BORDER-LEFT: #050505 1px solid; PADDING-LEFT: 7px">On Tue, Jun 29, 2010 at 10:09:19AM +0200, Horst Kriegers wrote:<BR>> the following scrip works only "On transaction" but not wen a new ticket is created.<BR>> What is wrong ?<BR><BR>Your condition says "only work when this is a custom field change", it<BR>doesn't consider Create types at all.<BR><BR>-kevin<BR><BR>> - Condition : User Defined<BR>> - Custom condition :<BR>> <BR>> my $trans = $self->TransactionObj;<BR>> my $ticket = $self->TicketObj;<BR>> <BR>> if ($trans->Type eq 'CustomField') {<BR>> my $cf = new RT::CustomField($RT::SystemUser);<BR>> $cf->LoadByName(Queue => $ticket->QueueObj->id, Name => "Qualification securite");<BR>> return 0 unless $cf->id;<BR>> <BR>> if ($trans->Field == $cf->id && $trans->NewValue eq "Oui") {<BR>> return 1;<BR>> }<BR>> <BR>> }<BR>> return 0;<BR></DIV></TD></TR></TBODY></TABLE><BR>
<p>
<font face="Arial" size="2">
_______________________________________________________________________ </font>
</p>
<p align="left">
<font face="Arial" size="2">Le contenu de ce courriel est uniquement
réservé à la personne ou l'organisme à qui il est destiné. Si vous
n'êtes pas le destinataire prévu, veuillez nous en informer au plus vite
et détruire le présent courriel. Dans ce cas, il ne vous est pas permis
de copier ce courriel, de le distribuer ou de l'utiliser de quelque
manière que ce soit.
</font> </p>
<p align="left">
<font face="Arial" size="2">
_______________________________________________________________________ </font>
</p>
<p>
<font face="Arial" size="2">The content of this e-mail is intended only
and solely for the use of the named recipient or organisation. If you
are not the named recipient, please inform us immediately and delete the
present e-mail. In this case, you are nor allowed to copy, distribute or
use this e-mail in any way.
</font> </p>
<p>
<font face="Arial" size="2">
_______________________________________________________________________ </font>
</p>
</BODY></HTML>