Could you please help me to get the Content of the opened ticket using a scrip?
I tried this:
my $AttachObj = $self->TransactionObj->Attachments->First;
my $content = $AttachObj->Content;
my $attachs = $self->TransactionObj->Attachments;
while( my $a = $attachs->Next )
if( $a->ContentType eq ‘text/plain’ )
$attach = $a;
my $content = $attach->Content;
But both pieces of code return tne Content of the current ticket when the condition is set to “On Create”.
How to get the Content of the ticket when the condition is set to “On Status Change”?
The Content field of Attachments table in the database is empty when the transaction is caused by clicking “Open”.
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”?
Any help would be very appreciated.
Yahoo! FareChase - Search multiple travel sites in one click.