Project

General

Profile

Actions

Defect #14990

closed

Time entries cannot be sorted by updated date via REST API

Added by Juozapis Juozapauskiksi almost 13 years ago. Updated about 7 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Resolution:
Fixed
Affected version:

Description

Does this sort work for you?:
time_entries.xml?limit=25&offset=0&project_id=ztestredmi&sort=updated_on:desc


Files


Related issues

Related to Redmine - Feature #44463: Add "Updated" column to the spent time listClosedGo MAEDAActions
Actions #1

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
Actions #2

Updated by Juozapis Juozapauskiksi almost 13 years ago

Bump
Are you going to fix this in upcoming releases?

Actions #3

Updated by Juozapis Juozapauskiksi almost 13 years ago

Please make me Christmas present and add it to upcoming release

Actions #4

Updated by Juozapis Juozapauskiksi over 12 years ago

Bump
Are you going to fix this in upcoming releases?

Actions #5

Updated by Juozapis Juozapauskiksi about 8 years ago

Bump this still does not work in the newest redmine (3.4.6.stable)
Query redmineurl?time_entries.xml?&sort=updated_on
Result:

Actions #6

Updated by Go MAEDA 3 days ago

  • Related to Feature #44463: Add "Updated" column to the spent time list added
Actions #7

Updated by Go MAEDA 2 days ago

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.

Actions #8

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.

Actions

Also available in: Atom PDF