Found the solution, i did it all wrong :)<br><br>The working code is: / line start with # are comments DO NOT paste them :)<br><br>#Get CF value<br>my $cf_va = $self->TicketObj->FirstCustomFieldValue('Priority');<br>
<br>#Set Priority number based on the text value set by the end user<br>my $pri_va = "";<br>$pri_va = "85" if ($cf_va =~ /^C/); #Critical <br>$pri_va = "71" if ($cf_va =~ /^V/); #Very High<br>
$pri_va = "41" if ($cf_va =~ /^H/); #High<br>$pri_va = "21" if ($cf_va =~ /^M/); #Medium<br>$pri_va = "0" if ($cf_va =~ /^L/); #Low<br><br>#end set the priority! <br>$self->TicketObj->SetPriority($pri_va);<br>
<br><br><br>