Hi Terri,<br><br>how should this work? If you set this scrip to on Create, then you have not defined the CF Value for Severity so far. How will the ticket created? Via Mail or WebUI? If you have some more information, i can sent you some working scrips from my installation, but i'm using now 
3.6.1.<br><br>Torsten<br><br><div><span class="gmail_quote">2006/8/17, Terri Bendl <<a href="mailto:terri.bendl@ezpass.csc.paturnpike.com">terri.bendl@ezpass.csc.paturnpike.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> We are trying to create a scrip that sets the Priority based on a custom field called "Severity".<br>> For example, if Severity = Urgent, the Priority should = 100.<br>> Here is the script we are using. I have seen other posts of people using this syntax, but we simply cannot get it to work.
<br>><br>> Condition: On Create<br>> Action: User Defined<br>> Custom action preparation code:<br>> return 1;<br>><br>> Custom action cleanup code:<br>> if ($self->TicketObj->FirstCustomFieldValue('Severity') eq "Urgent") {
<br>>    $self->TicketObj->SetPriority( 100 );<br>>    return 1;<br>> }<br>><br>> Stage: TransactionCreate<br>> Template: Blank<br>><br>> It is definitely a problem with the custom field portion of the code... (the SetPriority part works fine if we get rid of the first line that references the custom field)
<br>> Any advise???<br>><br>> We are using RT 3.0.8rc1<br>><br>> Thanks in advance.<br>><br>> Terri Bendl<br>> Network Administrator<br>><br>><br>><br>_______________________________________________
<br><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br><br>Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com
</a><br>Commercial support: <a href="mailto:sales@bestpractical.com">sales@bestpractical.com</a><br><br><br>Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>Buy a copy at <a href="http://rtbook.bestpractical.com">
http://rtbook.bestpractical.com</a><br></blockquote></div><br><br clear="all"><br>-- <br>MFG<br><br>Torsten Brumm<br><br><a href="http://www.torsten-brumm.de">http://www.torsten-brumm.de</a>