How do I set startAt and maxResults in curl request?

I'm using curl to search for issues in JIRA

This is my command:

curl -D- -u user:pass -X GET -H "Content-Type: application/json" https://jira.gtie.dell.com/rest/api/latest/search?jql=.............xmlQuery............

The problem is that i only get 50 issues. I want to set the startAt and maxResults parameters but can't seem to get it right. Can anyone help?

1 answer

0 vote
Gaston Valente Community Champion Jul 26, 2017

Hi Araiz,

This is the way:

/rest/api/2/search?jql=[jqlQuery]&startAt=10&maxResults=3

Gaston, 

I tried that, and it says 'startAt' and 'maxResults' is not recognized as an internal or external command.

Do you have an idea what what I might be doing wrong?

The query works with:

 rest/api/latest/search?jql=projects+%3D+JIT.......

Gaston Valente Community Champion Jul 26, 2017

I'm copying the code i place in the answer and works.

try with a simple query to check for a syntax problem:

/rest/api/2/search?jql=project=XXX&startAt=3&maxResults=5

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,316 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot