Forums

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

Jira Rest API - Returns same issues regardless of StartAt condition

S. S.
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!
June 28, 2018

I'm trying to paginate through the results given in an API call, but regardless of what I set the StartAt condition to be, I always get the same results. 

 

Here's an example:

API Call 1 

Max Results - 50

Total - 350

StartAt -

 

Results

  • Issue-1
  • Issue-2
  • ....
  • Issue-50

 

API Call 2

Max Results - 50

Total - 350

StartAt - 51

 

Results

  • Issue-1
  • Issue-2
  • ....
  • Issue-50

 

What's going on here? 

 

1 answer

2 votes
Alexey Matveev
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.
June 28, 2018

Hello,

How do you pass the stratAt parameter? It should be like this;

http://localhost:8080/jira/rest/api/2/search?startAt=70

Sanooj M July 24, 2018

can u show an example url with startAt and jql ?

Alexey Matveev
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.
July 25, 2018

For example, like this:

http://localhost:8080/jira/rest/api/2/search?jql=project%20%3D%20TEST&startAt=70

Sanooj M July 25, 2018

Thank u  so much for the valuable information

Alexey Matveev
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.
July 25, 2018

If my answer helped you, kindly accept my answer. In this case other people with a similair question will be able to find this answer.

Sanooj M July 26, 2018

Since the question is asked by some other person ,  I think he only can accept the answer.  I have voted for your answer

Suggest an answer

Log in or Sign up to answer