Hi,
<div><br></div><div>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 :</div><div><br></div><div>my $newowner = "userName";</div>
<div><div>my $T_Obj = $self->TicketObj;</div><div><div>my ($status, $msg) = $self->TicketObj->SetOwner( $newowner );</div><div><div>unless( $status ) {</div><div> $RT::Logger->error( "Unable to assign the ticket to $newowner: $msg" );</div>
<div> return undef;</div><div>}</div></div><div>return 1;</div></div><div><br></div><div><br></div><div>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.</div>
<div><br></div><div>$RT::Logger->info("Auto reference ticket #". $T_Obj->id ." to ticket #1234" );</div><div>my ($status, $msg) = $self->TicketObj->_Set( '<span style="background-color:rgb(255,255,255);font-family:'Courier New';font-size:10pt">DependedOnBy', '1234'</span>);</div>
</div><div><div>unless( $status ) {</div><div> $RT::Logger->error( "Unable to assign the ticket <span style="font-family:'Courier New';font-size:13px;background-color:rgb(255,255,255)">DependedOnBy</span>" );</div>
<div> return undef;</div><div>}</div></div><div>return 1;</div><div><br></div><div>Can anyone help me to go on the right way ?</div><div><br></div><div>X</div>