Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a Rest API call to get a list of all Issues?

Is there a Rest API call to get a list of all issues? And if possible a way to sort or set a filter on them.

2 answers

1 accepted

The best way to get issues is to use search method and pass a valid jql.You can filter, order etc just like you do in UI.

Great! Didn't know about that.

shat is the "valid jql" ?

Like Pierre Gerbaud likes this

In my case it only returned 50 records... is there any server setting that can help?

For Server REST API: /rest/api/2/search?maxResults=-1

This will return the maximum issues allowed by the Jira configuration, I believe the default is 1000 issues. 

Higher issues can be configured, but this is discouraged for performance reasons--this would affect the return results for the Issues search as well. 

 

Edit: necro reply to @ionutale you don't need to add any JQL, just the /rest/api/2/search call will pull all of your issues and display up to the max limit allowed (default 50). If you want to add valid jql, just add a url encoded query parameter jql, e.g.: /rest/api/2/search?jql=assignee%3Dionutale

i also answer: 

Valid JQL is : Jira Query Language

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you