Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get rest api to return issues sorted by last updated?

Jasmine Feng March 8, 2017

I am trying to construct a url that will return issues for a project sorted by updates...

What I currently have is:

   <url>/rest/api/2/search?jql=project="<projectname>"&orderBy=-updated&maxResults=3

but it looks like orderBy is not supported? How do I get them back sorted?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Niclas Sandstroem
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 8, 2017

Try this syntax:

curl -D- -u fred:fred -X GET -H "Content-Type: application/json" http://kelpie9:8081/rest/api/2/search?jql=assignee=fred+order+by+duedate

https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-query-issues

Jasmine Feng March 8, 2017

thank you! worked great (I used updated instead of duedate)

0 votes
Niclas Sandstroem
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 8, 2017

Searches for issues using JQL.

Sorting: the jql parameter is a full JQL expression which can include an ORDER BY clause.

What do you mean when you say not supported?

TAGS
AUG Leaders

Atlassian Community Events