Getting CustomField 'Sort' order in Scrip

Hi,

Am trying to do a select-a-worded-priority for our interface and have set the sort order to the numeric priority values, but I can’t figure out how to get the sort order from a Scrip on the queue so I can set the ticket’s Priority ($ticket->SetPriority(xxx)).

Is there a way using ObjectCustomFieldValues or just CustomFieldValues, instead of having to write a hash-map of word-to-number?

Stuart J. Browne
Senior Unix Administrator, Network Administrator
AusRegistry Pty Ltd
Level 8, 10 Queens Road
Melbourne. Victoria. Australia. 3004.
Ph: +61 3 9866 3710
Fax: +61 3 9866 1970
Email: stuart.browne@ausregistry.com.au
Web: www.ausregistry.com.au

The information contained in this communication is intended for the named recipients only. It is subject to copyright and may contain legally privileged and confidential information and if you are not an intended recipient you must not use, copy, distribute or take any action in reliance on it. If you have received this communication in error, please delete all copies from your system and notify us immediately.

Am trying to do a select-a-worded-priority for our interface and
have set the sort order to the numeric priority values, but I can’t
figure out how to get the sort order from a Scrip on the queue so I
can set the ticket’s Priority ($ticket->SetPriority(xxx)).

Have you seen RT-Extension-PriorityAsString ?

Is there a way using ObjectCustomFieldValues or just
CustomFieldValues, instead of having to write a hash-map of
word-to-number?

You can iterate through the CustomFieldValues collection from a CF and
request ->SortOrder, or you could just load columns directly.

-kevin