Forums

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

Getting ALL results from a JQL using Jira cloud rest API

elenabol
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 8, 2019

Hey guys, I've been trying to get all Jira issue results from a given JQL: 

https://mysite.atlassian.net/rest/api/3/search?jql=issuetype+%3D+Bug+AND+resolution+%3D+unresolved+AND+maxResults%3D4

However this doesn't seem to work, so I must be getting it wrong, as it always returns only 50 issues. 

Many thanks in advance! 

1 answer

2 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 11, 2019

Hello @elenabol

Welcome to Atlassian Community!

Checking your REST API, I believe your browser is adding some strange values to the REST API URL. Please, try to use the following call:

https://mysite.atlassian.net/rest/api/3/search?jql=issuetype=story+AND+resolution=unresolved&maxResults=100

The Rest API above will return the first 100 results of your JQL query. In fact, there is a limit of 100 results per query as described in the thread below:

JIRA Cloud REST API /rest/api/latest/search?maxResults=1000 is returning only 100 results. 

If you would like to return more than 100 results, you can use pagination as described in the thread:

Pagination - REST API 

Let me know if this information helps.

Suggest an answer

Log in or Sign up to answer