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

Xavier Reigner xavier.reigner at sensile.com
Tue Nov 27 08:39:40 EST 2012


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( $status ) {
    $RT::Logger->error( "Unable to assign the ticket to $newowner: $msg" );
    return undef;
return 1;

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 #1234"
my ($status, $msg) = $self->TicketObj->_Set( 'DependedOnBy', '1234');
unless( $status ) {
    $RT::Logger->error( "Unable to assign the ticket DependedOnBy" );
    return undef;
return 1;

Can anyone help me to go on the right way ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20121127/089dd4c1/attachment.htm>

More information about the rt-users mailing list