Comment 0 for bug 523496

Revision history for this message
Ursula Junque (ursinha) wrote :

It's not clear which fields should be used with the order_by parameter in the searchTasks method. API docs only say that order_by is a list of fields. Trying to run searchTasks ordering by date_created, that's the name of the property in a bug_task, you'll run into this:

  KeyError: u'date_created'

as can be seen in OOPS-1507EA75.

So, it would nice to have a list of fields that can be used in the docs, so we wouldn't have to guess or grep the code to find it out. In that case, the name of the field is 'datecreated'.