Project

General

Profile

Actions

Defect #26483

closed

REST api for issue doesn't work with sort

Added by Mao H over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hi,

The REST api for issue Rest_Issues states that it accepts a parameter 'sort'.
I use the api and pass in the column name, e.g. issue_id, updated_on, created_on, tracker_id etc, but I get the same list in the same order. Even if I also pass in ":desc", I still get the same list in the same order. The api doesn't support sort at all. Please add the support.

Actions #1

Updated by Toshi MARUYAMA over 6 years ago

  • Description updated (diff)
Actions #2

Updated by Toshi MARUYAMA over 6 years ago

  • Status changed from New to Needs feedback

Please describe more details.
What parameters do you use?
And please see submissions.

Actions #3

Updated by Mao H over 6 years ago

I use something like "GET" (I'm using X-Redmine-API-Key in the request)
http://<my redmine server>/issues.json?sort=created_on

I also replace created_on with other column name and they all not sorting.
I also try :desc
http://<my redmine server>/issues.json?sort=created_on:desc

":desc" doesn't affect anything.

Both of the above two query return the same result as
http://<my redmine server>/issues.json

Actions #4

Updated by Mao H over 6 years ago

Please close this issue. I find that I miss something in my query. And it works.

Actions #5

Updated by Jean-Philippe Lang over 6 years ago

  • Status changed from Needs feedback to Closed
Actions

Also available in: Atom PDF