Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

How to get all issues data from rest api? Edited

I found that

https://my-domain.atlassian.net/rest/api/2/search?jql= 

is fetching all issues

 

but default maxLength is 50, so I can not see more than 50 issues (in my case I have over 2000 issues)

so I try the offset parameter(`offset=100`) for searching the next 100 issues, but It didn't work.

 

Is there any parameter to fetch the next 50 issues?

1 answer

1 accepted

2 votes
Answer accepted

Hi,

Try to use he maxresult parameter and startAt inside a loop if you can't fetch 2000 issue with the first parameter.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#expansion

@Mohamed Benziane Thanks for great answer, 

startAt parameter works

as you suggested, now I can fetch all data inside a for loop

Like Mohamed Benziane likes this

Suggest an answer

Log in or Sign up to answer
TAGS

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