Re: [rt-users] How to set a specific 'Depended on' by from scrip

2012-11-28 Thread Xavier Reigner
Excellent, I finally got what I want doing like this : my $newdependedonby = 1234; my ($status, $msg) = $self-TicketObj-AddLink(Type='DependsOn',Base=$newdependedonby ); Thanks Kevin, X On 27 November 2012 18:16, Kevin Falcone wrote: On Tue, Nov 27, 2012 at 02:39:40PM +0100, Xavier Reigner

[rt-users] How to set a specific 'Depended on' by from scrip

2012-11-27 Thread Xavier Reigner
Hi, On ticket creation, I made a custom scrip to assigne the new ticket to a specified user based on a requestor address. This is working with the following action cleanup : my $newowner = userName; my $T_Obj = $self-TicketObj; my ($status, $msg) = $self-TicketObj-SetOwner( $newowner ); unless(

Re: [rt-users] How to set a specific 'Depended on' by from scrip

2012-11-27 Thread Kevin Falcone
On Tue, Nov 27, 2012 at 02:39:40PM +0100, Xavier Reigner wrote: In addition, I'd like to specify a link Depended on by to the tickets according to the previous test. I'm still confusing how I should update this field. $RT::Logger-info(Auto reference ticket #. $T_Obj-id . to ticket