[rt-users] Getting CustomField 'Sort' order in Scrip

Kevin Falcone falcone at bestpractical.com
Mon Oct 11 08:31:56 EDT 2010


On Mon, Oct 11, 2010 at 03:50:22PM +1100, Stuart Browne wrote:
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20101011/8c0116c1/attachment.sig>


More information about the rt-users mailing list