You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Using the Jira REST API's I can easily paginate the results, as it provides me a count of results returned, max results existing, and max results that can be returned at one time.
Example code for Jira:
We are looking to use the attributes:
It seems that we have a limit of 100 results from any of the Jira Align REST APIs.
We have searched the swagger Jira Align pages, and were unable to see any formatting for this type of pagination of results. Expect the Portfolio Epics to grow well beyond 10,000 records, as we enter more data into the system. So, we need a way to only pull a limited set. This also applies to the User list.
I have found this page:
and it provides some information on Basic Pagination.
Top: Return the first 10 Epics
Skip: Skip the first 521 epics and return all after
If my REST CALLs are limited to 100, and I am not given a total count, how would I know when to stop trying to pull, unless I am comparing all the data I pull?
To reiterate, the Jira API has:
maxResults and startAt, plus returns the count and/or flag of last
The rough equivalent for Jira Align API is:
top (for maxResults / page size, default 100) and skip (for startAt)
Additionally, no indication that you came to the end is sent, if the result set happens to be the same as the top (aka maxResults) size, the subsequent fetch will return an empty response. Otherwise, when the response set is less than the top (aka maxResults) size, that is all