Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Search for issues using JQL (GET) : order issues in the response by id asc

Dusan Spaic
Contributor
February 22, 2019

Hi everyone,

 

I am using api rest (cloud) to search for a issues in a specific project and with specific properties:

/search?jql=project=projectId&fields=*none&startAt=startAtValue&maxResults=maxResultsValue&properties=...";

In the api response, I noticed that the issues are ordered by id DESC. 

{
"expand": "schema,names",
"startAt": 0,
"maxResults": 100,
"total": 4,
"issues": [
{
"expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
"id": "10004",
...},
{
"expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
"id": "10003",
...
}

 

Is there any way to have this issue array returned by ?search ordered by id ASC? 

1 answer

1 accepted

0 votes
Answer accepted
Dusan Spaic
Contributor
February 22, 2019

The problem was in my search parameter.

This is the working example:

search?jql=project=10001%20order%20by%20id%20asc&fields=*none&maxResults=10000&

Suggest an answer

Log in or Sign up to answer