Hello,<br>I've gotten a little ways here on defining a custom scrip that launches on merge, not sure about if I can limit the queues like I'm doing though...<br>---condition---<br>my $txn = $self->TransactionObj;<br>return undef unless $txn->Type =~ /^AddLink$/i;
<br>return undef unless $txn->Field =~ /^MergedInto$/i;<br>my @queues = qw(Enrollment/Recruitment Installation Accounting HealthCheck/Follow-up);<br>my $queue = $txn->Queue;<br>my $qCount = grep(/\Q$queue\E/,@queues);
<br>my $cfv = $self->TicketObj->FirstCustomFieldValue('Lead Source');<br>return undef if (length($cfv > 0));<br>return undef unless $qCount >= 1;<br>return 1;<br><br>My question is really when your merging two tickets, the $self->TransactionObj is for which the ticket your merging from or the ticket your merging into?
<br>If so how do you get the other ticket in the transaction, so I can pull the custom field values I need from it to set in the merged ticket, right now, if you merge a ticket, into another, custom fields dont get merged. ...
<br><br>Thanks in advance,<br><br>Rodney<br>