Project

General

Profile

Actions

Defect #14990

closed

Time entries cannot be sorted by updated date via REST API

Defect #14990: Time entries cannot be sorted by updated date via REST API

Added by Juozapis Juozapauskiksi about 13 years ago. Updated 3 months 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 1 (0 open — 1 closed)

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

Updated by Juozapis Juozapauskiksi about 13 years ago Actions #1

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 about 13 years ago Actions #2

Bump
Are you going to fix this in upcoming releases?

Updated by Juozapis Juozapauskiksi almost 13 years ago Actions #3

Please make me Christmas present and add it to upcoming release

Updated by Juozapis Juozapauskiksi almost 13 years ago Actions #4

Bump
Are you going to fix this in upcoming releases?

Updated by Juozapis Juozapauskiksi about 8 years ago Actions #5

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 months ago Actions #6

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

Updated by Go MAEDA 3 months ago Actions #7

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 3 months ago Actions #8

  • 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: PDF Atom