[rt-users] Custom Field (Priority) not Updating Actual Priority

wendi413 wendi413 at gmail.com
Tue Jul 30 11:52:05 EDT 2013


I have setup a Custom Field for users to enter a Priority
(Minor/Low/Medium/High/Critical). When a ticket is created, this custom
field updates the actual Priority via a custom scrip.

Condition: On Transaction
Action: User Defined
Stage: TransactionCreate
Snippet:
my $cf_va = $self->TicketObj->FirstCustomFieldValue('Priority'); 

#Set Priority number based on the text value set by the end user 
my $pri_va = ""; 
$pri_va = "4" if ($cf_va =~ /^Critical/ or $cf_va == "4");
$pri_va = "3" if ($cf_va =~ /^High/ or $cf_va == "3"); 
$pri_va = "2" if ($cf_va =~ /^Medium/ or $cf_va == "2"); 
$pri_va = "1" if ($cf_va =~ /^Low/ or $cf_va == "1"); 
$pri_va = "0" if ($cf_va =~ /^Minor/);

#Set the priority 
if($pri_va != ""){$self->TicketObj->SetPriority($pri_va)};

This works fine, but if someone goes into the ticket Basics and changes the
Priority via the CF, it does not update the actual Priority? It will update
if they send out an email, etc. Curious what I am missing here? New to RT
and it's super powerful but baffling. :) Thanks for any leads!



--
View this message in context: http://requesttracker.8502.n7.nabble.com/Custom-Field-Priority-not-Updating-Actual-Priority-tp54815.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.



More information about the rt-users mailing list