<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV>Could you please help me to get the Content of the opened ticket using a scrip?</DIV>
<DIV> </DIV>
<DIV>I tried this:</DIV>
<DIV> </DIV>
<DIV>my $AttachObj = $self->TransactionObj->Attachments->First;<BR>my $content = $AttachObj->Content;</DIV>
<DIV> </DIV>
<DIV>and this:</DIV>
<DIV> </DIV>
<DIV>my $attachs = $self->TransactionObj->Attachments;<BR>my $attach;<BR>while( my $a = $attachs->Next ) <BR>{<BR>  if( $a->ContentType eq 'text/plain' ) <BR>  { <BR>    $attach = $a; <BR>    last <BR>  } <BR>} <BR>my $content = $attach->Content;</DIV>
<DIV><BR>But both pieces of code return tne Content of the current ticket when the condition is set to "On Create".</DIV>
<DIV> </DIV>
<DIV>How to get the Content of the ticket when the condition is set to "On Status Change"?</DIV>
<DIV> </DIV>
<DIV>The Content field of Attachments table in the database is empty when the transaction is caused by clicking "Open".</DIV>
<DIV> </DIV>
<DIV>Is there any way RT could give me the Content by specifying the id of the ticket? Or any other way to get the content on "Open"?</DIV>
<DIV> </DIV>
<DIV>Any help would be very appreciated.</DIV>
<DIV> </DIV>
<DIV>Vaida</DIV>
<DIV> </DIV><p>
                <hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>