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

Getting issues from Jira Cloud - startAt does not work with high values Edited

We have created a script that downloads all issues into our data warehouse. It iterates our issue list using 

 

https://OURSITE.atlassian.net/rest/api/3/search?jql=project=OURPROJECT_CODE&startAt=<startAt parameter>&maxResults=<startAt + 100>

 

this works for getting issues, but the script fails when we get to high values for startAt. 

 

For example 

 

https://OURSITE.atlassian.net/rest/api/3/search?jql=project=OURPROJECT_CODE&startAt=151600&maxResults=151700

 

returns the following JSON with a HTTP 500 code

{"errorMessages":["Internal server error"],"errors":{}}

one more thing: I do know for sure that we have more than 160 000 issues. So we should be able to get more than 151700 issues 

 

 

EDIT: After doing some investigation, I see that 

startAt=151700&maxResults=151800 works, but startAt=151600&maxResults=151700 does NOT work. This is really strange. In other words, there is a certain offset we are not able to retrieve

1 answer

one more thing: I do know for sure that we have more than 160 000 issues. So we should be able to get more than 151700 issues

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

973 views 11 25
Read article

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