Defect #14990
closedTime entries cannot be sorted by updated date via REST API
Description
Does this sort work for you?:
time_entries.xml?limit=25&offset=0&project_id=ztestredmi&sort=updated_on:desc
Files
Related issues
Updated by Juozapis Juozapauskiksi almost 13 years ago
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
Updated by Juozapis Juozapauskiksi almost 13 years ago
Bump
Are you going to fix this in upcoming releases?
Updated by Juozapis Juozapauskiksi almost 13 years ago
Please make me Christmas present and add it to upcoming release
Updated by Juozapis Juozapauskiksi over 12 years ago
Bump
Are you going to fix this in upcoming releases?
Updated by Juozapis Juozapauskiksi about 8 years ago
- File 14990_05_01.png 14990_05_01.png added
Bump this still does not work in the newest redmine (3.4.6.stable)
Query redmineurl?time_entries.xml?&sort=updated_on
Result:
Updated by Go MAEDA 3 days ago
- Related to Feature #44463: Add "Updated" column to the spent time list added
Updated by Go MAEDA 2 days ago
- File 0002-Add-an-API-test-for-sorting-time-entries-by-updated_.patch 0002-Add-an-API-test-for-sorting-time-entries-by-updated_.patch added
- Subject changed from Time entries sort by updated_on to Time entries cannot be sorted by updated date via REST API
- Status changed from New to Confirmed
- Target version set to Candidate for next major release
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.
Updated by Go MAEDA about 7 hours ago
- 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.