Restful Query returning to few results, not max size limit

Ben May 12, 2021

When attempting to use the restful API using postman I get far too few results compared to running the same query in a search.

I am using a fairly ambiguous JQL "project = "ITSD" AND created >= startOfMonth(-6)"

When I use this in the Search box I get over 11,000 results,

In the restful query the total displays as 283

restful query: https://*Company*.com.au/jira/rest/api/2/search?jql=project = "ITSD" AND created >= startOfMonth(-6)

I am using Basic Authentication and don't get any authentication errors.

1 answer

1 accepted

1 vote
Answer accepted
Prince Nyeche
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.
May 13, 2021

You have to cycle through the results as everything is done in pagination, so you don't get a chunky data. That's what the parameters startAt is used for to cycle through each record. Also set a maxResults so you can display a certain number of results while cycling through each record.

Suggest an answer

Log in or Sign up to answer