<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div id="yiv1042218838"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">Hi All, hope this will help some one :) I found this post (RT wick) and gave me exactly what I was looking for<br><br>http://requesttracker.wikia.com/wiki/CustomConditionSnippets#on_Status_Change_from_.22new.22_to_.22open.22<br><span id="yiv1042218838yui_3_2_0_18_1348050046674102"></span><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;" id="yiv1042218838yui_3_2_0_18_1348050046674103"><span id="yiv1042218838yui_3_2_0_18_1348050046674102"><br></span></div><div id="yiv1042218838yui_3_2_0_18_1348050046674119" style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times,
 serif;background-color:transparent;font-style:normal;"><span id="yiv1042218838yui_3_2_0_18_1348050046674102">    Description: Asa - On Open change Correpond Status
 <br>    Condirion: On Create<br>    Action: User Defined<br>    Template: Global template: Blank<br>    stage: TransactionCreate<br><br>    Custom condition:<br><br>    my $txn = $self->TransactionObj;<br>    my $type = $txn->Type;<br>    return 0 unless $type eq "Status"<br>        || ( $type eq 'Set' && $txn->Field eq 'Status');<br><br>    return 0 unless $txn->OldValue eq "new";<br>    return 0 unless $txn->NewValue eq "open";<br>    return 1;<br><br><br>    Custom action preparation code:<br>    <br>    my ($success, $msg) = $self->TicketObj->AddCustomFieldValue(Field => 'Correspond Status', Value => 'Work in Progress');<br>    if (!$success)
 {<br>    $RT::Logger->error($msg);<br id="yiv1042218838yui_3_2_0_18_1348050046674136">    return 0;</span></div><div id="yiv1042218838yui_3_2_0_18_1348050046674137" style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span id="yiv1042218838yui_3_2_0_18_1348050046674102"></span><span id="yiv1042218838yui_3_2_0_18_1348050046674102">    }<br>    return 1;<br>    <br></span></div><div id="yiv1042218838yui_3_2_0_18_1348050046674147"><br></div><div id="yiv1042218838yui_3_2_0_18_1348050046674160">Thanks and Best Regards<br id="yiv1042218838yui_3_2_0_18_1348050046674166"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;" id="yiv1042218838yui_3_2_0_18_1348050046674161"><br
 id="yiv1042218838yui_3_2_0_18_134805004667457"></div>  <div class="yiv1042218838yui_3_2_0_18_134805004667460" id="yiv1042218838yui_3_2_0_18_134805004667462" style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div id="yiv1042218838yui_3_2_0_18_1348050046674108" class="yiv1042218838yui_3_2_0_18_134805004667467" style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div id="yiv1042218838yui_3_2_0_18_1348050046674153" dir="ltr"> <font id="yiv1042218838yui_3_2_0_18_1348050046674152" face="Arial" size="2"> <hr size="1">  <b id="yiv1042218838yui_3_2_0_18_1348050046674151"><span id="yiv1042218838yui_3_2_0_18_1348050046674150" style="font-weight:bold;">From:</span></b> Asanka Gunasekera <asanka_gunasekera@yahoo.co.uk><br> <b id="yiv1042218838yui_3_2_0_18_1348050046674170"><span id="yiv1042218838yui_3_2_0_18_1348050046674169" style="font-weight:bold;">To:</span></b> "rt-users@lists.bestpractical.com"
 <rt-users@lists.bestpractical.com> <br> <b id="yiv1042218838yui_3_2_0_18_1348050046674176"><span id="yiv1042218838yui_3_2_0_18_1348050046674175" style="font-weight:bold;">Sent:</span></b> Friday, 14 September 2012, 12:50<br> <b id="yiv1042218838yui_3_2_0_18_1348050046674182"><span id="yiv1042218838yui_3_2_0_18_1348050046674181" style="font-weight:bold;">Subject:</span></b> capture status change to apply custom filed status<br> </font> </div> <br><div id="yiv1042218838"><div><div class="yiv1042218838yui_3_2_0_18_134805004667479" style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div>Hi, how can I capture the action of "opening" (not the open status) a new ticket to apply a custom filed value to "Work in progress"</div><div><br></div><div class="yiv1042218838yui_3_2_0_18_134805004667481" style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times,
 serif;background-color:transparent;font-style:normal;">Thanks and regards<br></div></div></div></div><br><br> </div> </div>  </div></div></div></div></body></html>