You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I am currently working on iOS app and want to show all the issues reported by me and i am currently using the below rest api -
but it returns all the issues that are reported by me , Now i only want to show first 10 issues in the app and then when the user scrolls down it should load the next batch of issues on the app , How can i do it ? Do i need to add any filters for the above api ? Please let me know
Community moderators have prevented the ability to post new answers.
Use the startAt and maxResults values as appropriate. I wanted to give sample links but the spam filter is not allowing it.
You can have startAt = 0 and maxResults = 10 for the first call. startAt = 10 and maxResults = 10 for the next 10 results and so on.
Precisely the correct way to do it. We do it in all our scripts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay thanks and adding to that can i add something like "/page?limit=5" which confluences uses for pagination ? does JIRA support the same "page" filter like confluence or should i go ahead with the above answer startAt & maxResults ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jobin Kuruvilla [Go2Group] Can you please help me with the above question ? thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/page?limit won't work with REST API. You need to use startAt and maxResults.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When I try using the query parameters maxResults or startAt, I get the below error:
"Field 'maxResults' does not exist or you do not have permission to view it."
By default I get just the first 50 results and I need to workaround the Pagination in order to fetch all the results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to note (I know the topic is old): maxResults is the parameter you pass in the http query. In response you get "total" field with number of all records within query range. So when parsing JSON result search for a "total" key.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
maxResults
is a query parameter, not a JQL-related keyword.
/search?jql=[JQL_string]&maxResults=500
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, if you are running these commands from curl, try url encoding your string. For example = is %3D & is %26. It helped get my tests working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This helped me to understand better how pagination is used.
Hope it's useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.