[rt-users] rt command order by question

Kevin Falcone falcone at bestpractical.com
Tue Oct 15 12:44:36 EDT 2013


On Sat, Oct 12, 2013 at 02:19:18AM +0000, Xin, Qiao wrote:
>    Can I use "rt ls" command line to order by more than two fields?

rt ls only supports one order by field.

You'd need to tweak this code
https://github.com/bestpractical/rt/blob/stable/share/html/REST/1.0/search/ticket#L92
as well as bin/rt to send correctly formatted syntax for the new
support.

-kevin

>    By default, it is sorted by Ticket #. But if I sort using a different field, the Ticket# is
>    out of order for tickets with same field value.
>    I tried to order by both field and Ticket# and it does not work. Please help.
>    # rt ls  -o +field,+id "query"
>    Or
>    # rt ls  -o +field  -o +id "query"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20131015/59db3172/attachment.sig>


More information about the rt-users mailing list