I am trying to create approvals based on a custom field.  I have a field for the severity of the issue: emergency, required, and planned.  I would like the logic to follow...<br><br>if CustomFieldValue = emergency<br>{<br>
===Create-Ticket: approval1<br>Subject: Approve purchase order for {$Tickets{'TOP'}->Subject}<br>Depended-On-By: TOP<br>Queue: Approvals-PO<br>Type: approval<br>Owner: approveadmin #note this is so that notifications work properly
<br>Content: Someone has created a purchase requisition.  Please review and approve it, so they can spend some money.<br>ENDOFCONTENT<br><br><br>===Create-Ticket: approval2<br>Subject: Approve purchase order for {$Tickets{'TOP'}->Subject}
<br>Depended-On-By: TOP<br>Queue: Approvals-PO<br>Type: approval<br>Owner: approveadmin2 #note this is so that notifications work properly<br>Content: Someone has created a purchase requisition.  Please review and approve it, so they can spend some money.
<br>ENDOFCONTENT<br>}<br><br>elseif CustomFieldValue = required<br>{<br>===Create-Ticket: approval1<br>Subject: Approve purchase order for {$Tickets{'TOP'}->Subject}<br>Depended-On-By: TOP<br>Queue: Approvals-PO
<br>Type: approval<br>Owner: approveadmin #note this is so that notifications work properly<br>Content: Someone has created a purchase requisition.  Please review and approve it, so they can spend some money.<br>ENDOFCONTENT
<br>}<br><br>I am new to RT and just don't know how or where the code for this show be.  Any help would be greatly appreciated