Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

REST API to GET ALL Updated Issues

Using https://myinstance.atlassian.net/rest/api/3/search?updatedDate >= -3d

to get update issues.  However, it only returns 50 results.  When I do a search in my instance I have 375 issues returned.

I tried adding &maxResults to my REST call but only went up to 100?

Is there any way for cloud server to user REST API to get all the issues within the JQL results?

Thanks!

3 answers

1 accepted

1 vote
Answer accepted

Hello, unfortunately you cannot bring more than 100, what you have to do is use the paging https://myinstance.atlassian.net/rest/api/3/search?updatedDate> = -3d & maxResults = 100 & startAt = 100

This allows you to bring 100 tickets in several calls, increasing the value of startAt

you can do:

https://myinstance.atlassian.net/rest/api/3/search?updatedDate> = -3d &maxResults=100&startAt =100
https://myinstance.atlassian.net/rest/api/3/search?updatedDate> = -3d &maxResults=100&startAt = 200
https://myinstance.atlassian.net/rest/api/3/search?updatedDate> = -3d &maxResults=100&startAt = 300

Hi @thorngje 

I believe the REST API is limited to 100 records at a time maximum, and you would use the startAt parameter to iterate through them.

https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/search-search

Best regards,

Bill

0 votes

Hi @thorngje , I agree with Bill and Juan Manuel's answers. To add some more context, there is this ticket from Atlassian that describes the issue and provides a workaround (the same that Bil and Juan Maniel shared):

https://jira.atlassian.com/browse/JRACLOUD-67570

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