<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Hi Kenneth thanks for the reply and I found the Custom action code in RT wiki and below is the code hop this is the way to do it :)<br><br>    Description: On Open change Correspond 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>    return 0;<br>    }<br>    return 1;<br><div><br><span></span></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;"><span>Thanks and Best Regards<br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span
 style="font-weight:bold;">From:</span></b> Kenneth Crocker <kenn.crocker@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> RT User List <rt-users@lists.bestpractical.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 20 September 2012, 11:38<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rt-users] capture status change to apply custom filed status<br> </font> </div> <br><div id="yiv824184291">Asanka,<div><br></div><div><br></div><div>That would probably be the transaction with a type of "Create". That's what triggers the ticket being created. If that is what you mean.</div><div><br></div><div>kenn<br>
<br><div class="yiv824184291gmail_quote">On Wed, Sep 19, 2012 at 3:25 AM, Asanka Gunasekera <span dir="ltr"><<a rel="nofollow" ymailto="mailto:asanka_gunasekera@yahoo.co.uk" target="_blank" href="mailto:asanka_gunasekera@yahoo.co.uk">asanka_gunasekera@yahoo.co.uk</a>></span> wrote:<br><blockquote class="yiv824184291gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-size:12pt;font-family:times new roman, new york, times, serif;">this <br><div class="yiv824184291hm yiv824184291HOEnZb"><div><span></span></div><div><br></div>  </div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;">
<div class="yiv824184291hm yiv824184291HOEnZb"> </div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div class="yiv824184291hm yiv824184291HOEnZb"> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Asanka Gunasekera <<a rel="nofollow" ymailto="mailto:asanka_gunasekera@yahoo.co.uk" target="_blank" href="mailto:asanka_gunasekera@yahoo.co.uk">asanka_gunasekera@yahoo.co.uk</a>><br>
 <b><span style="font-weight:bold;">To:</span></b> "<a rel="nofollow" ymailto="mailto:rt-users@lists.bestpractical.com" target="_blank" href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a>" <<a rel="nofollow" ymailto="mailto:rt-users@lists.bestpractical.com" target="_blank" href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a>> <br>
 <b><span style="font-weight:bold;">Sent:</span></b> Friday, 14 September 2012, 12:50<br> <b><span style="font-weight:bold;">Subject:</span></b> capture status change to apply custom filed status<br> </font> </div></div><div class="yiv824184291im">
 <br><div><div><div style="font-size:12pt;font-family:times new roman, new york, times, serif;"><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 style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman, new york, times, serif;">Thanks and regards<br></div></div></div></div><br><br> </div></div> </div>  </div>
</div><br><br>
--------<br>
Final RT training for 2012 in Atlanta, GA - October 23 & 24<br>
  <a rel="nofollow" target="_blank" href="http://bestpractical.com/training">http://bestpractical.com/training</a><br>
<br>
We're hiring! <a rel="nofollow" target="_blank" href="http://bestpractical.com/jobs">http://bestpractical.com/jobs</a><br>
<br></blockquote></div><br></div>
</div><br><br>--------<br>Final RT training for 2012 in Atlanta, GA - October 23 & 24<br>  <a href="http://bestpractical.com/training" target="_blank">http://bestpractical.com/training</a><br><br>We're hiring! <a href="http://bestpractical.com/jobs" target="_blank">http://bestpractical.com/jobs</a><br><br><br> </div> </div>  </div></body></html>