<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma; COLOR: #000000">
<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV>the following scrip works only "On transaction" but not wen a new ticket is created.</DIV>
<DIV>What is wrong ?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>- Condition : User Defined</DIV>
<DIV>- Custom condition :</DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New">my $trans = $self->TransactionObj;<BR>my $ticket = $self->TicketObj;</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">if ($trans->Type eq 'CustomField') {<BR> my $cf = new RT::CustomField($RT::SystemUser);<BR> $cf->LoadByName(Queue => $ticket->QueueObj->id, Name => "Qualification sécurité");<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;</FONT> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks in advance for your help.</DIV>
<DIV>Horst</DIV><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>