Defect #14990
closed
Time entries cannot be sorted by updated date via REST API
Added by Juozapis Juozapauskiksi almost 13 years ago.
Updated 2 days ago.
Description
Does this sort work for you?:
time_entries.xml?limit=25&offset=0&project_id=ztestredmi&sort=updated_on:desc
Files
I tried some Redmine modification for first time in my life seeing Ruby. When I added to end of self.available_columns = [...
QueryColumn.new(:updated_on, :sortable => "#{TimeEntry.table_name}.updated_on", :default_order => 'desc'),
located in app\models\time_entry_query.rb it is now working in REST API
Bump
Are you going to fix this in upcoming releases?
Please make me Christmas present and add it to upcoming release
Bump
Are you going to fix this in upcoming releases?
Bump this still does not work in the newest redmine (3.4.6.stable)
Query redmineurl?time_entries.xml?&sort=updated_on
Result:

- Related to Feature #44463: Add "Updated" column to the spent time list added
The attached patch is a test that reproduces this issue.
I have also submitted a patch in #44463 that adds a sortable "Created" column to the "Available columns" for the Spent time list. If that patch is merged, it will also fix this issue.
- Status changed from Confirmed to Closed
- Priority changed from High to Normal
- Target version deleted (
Candidate for next major release)
- Resolution set to Fixed
This issue was fixed by #44463 for Redmine 7.1.0.
Also available in: Atom
PDF