[rt-users] Setting RefersTo links
Jared Hanks
jmhanks1373 at hotmail.com
Fri May 11 15:22:34 EDT 2007
Hello,
I'm trying to set the RefersTo link to another ticket while creating it, but am not having any success.
I have the following in Custom action cleanup code:
1;
my $AttachObj = $self->TransactionObj->Attachments->First;# go out if content is not text!unless( $AttachObj->ContentType =~ /^text/ ) {
return 1;}
my $content = $AttachObj->Content;
if( $content =~ m/^\RefersTo:\E\s*(\S+)\s*$/m ) {
$self->TicketObj->RefersTo( $1 );}
if( $content =~ m/^\QSet-Status:\E\s*(\S+)\s*$/m ) {
$self->TicketObj->SetStatus( $1 );}
I'm able to set the status but not the Refers to link. Any help is appreciated.
Thanks,
Jared
_________________________________________________________________
Download Messenger. Start an i’m conversation. Support a cause. Join now.
http://im.live.com/messenger/im/home/?source=TAGWL_MAY07
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070511/ae53a3d2/attachment.htm>
More information about the rt-users
mailing list