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...

if CustomFieldValue = emergency
{
===Create-Ticket: approval1
Subject: Approve purchase order for {$Tickets{'TOP'}->Subject}
Depended-On-By: TOP
Queue: Approvals-PO
Type: approval
Owner: approveadmin #note this is so that notifications work properly
Content: Someone has created a purchase requisition.  Please review and
approve it, so they can spend some money.
ENDOFCONTENT


===Create-Ticket: approval2
Subject: Approve purchase order for {$Tickets{'TOP'}->Subject}
Depended-On-By: TOP
Queue: Approvals-PO
Type: approval
Owner: approveadmin2 #note this is so that notifications work properly
Content: Someone has created a purchase requisition.  Please review and
approve it, so they can spend some money.
ENDOFCONTENT
}

elseif CustomFieldValue = required
{
===Create-Ticket: approval1
Subject: Approve purchase order for {$Tickets{'TOP'}->Subject}
Depended-On-By: TOP
Queue: Approvals-PO
Type: approval
Owner: approveadmin #note this is so that notifications work properly
Content: Someone has created a purchase requisition.  Please review and
approve it, so they can spend some money.
ENDOFCONTENT
}

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
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to