[rt-users] Creating a ReferredToBy Link

Sean McCrindle sean at youramigo.com
Thu Mar 4 20:11:05 EST 2010


Hi,
Some time lurker, first time poster.
I am trying to make a script which parses an incoming message for text 
for RT#<TicketId> and then adds a ReferredToBy link relationship between 
the current ticket being posted to, and the ticket id extracted.

I have:

while ($content =~ m!RT#(\d+)!g) {
   $self->TicketObj->AddLink(Type=>'ReferredToBy', Target=>$1);
}

But this does not work.


I can do:
while ($content =~ m!RT#(\d+)!g) {
   $self->TicketObj->AddLink(Type=>'RefersTo, Base=>$1);
}
and this works.

Can anyone help with the correct syntax to create the ReferredToBy link?

RT 3.8.2

Regards,
Sean



More information about the rt-users mailing list