Via Issue Search API how to get more than 100 issues on single page

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 3, 2024

Hi Teams,

 

Need your help in fetching more than 100 issues via Issue search API. I am getting only issue id more than 100 but putting any field in request it shows on 100 issues and nextpage link 

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-get

Kindly suggest, how to get more then 100 data via api.

2 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 4, 2024

Hi @Vikrant Yadav 

Without seeing your specific call, I hypothesize you are also trying to pull back the fields at the same time, and so the results are limited to 100 issues.  When only the id values are requested, the limit is up to the 5000 limit, when supplying the maxResults parameter.

To pull back more issue fields, please see the additional details under the change notice: https://developer.atlassian.com/changelog/#CHANGE-2046

It suggests getting the id values first and then using a bulk fetch operations.

Kind regards,
Bill

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 4, 2024

@Bill Sheboy  Yeah without adding field it shows 5000 issue id but after adding field it only shows 100 issues and nextPageLink. 

Getting ID first is fine then which bulk fetch operation I need to use , Any API request for this ? 

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 4, 2024

If you expand the details in that change notice, it lists the bulkfetch endpoint, although I do not find it listed in the documentation for bulk operations: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-bulk-operations/#api-group-issue-bulk-operations

Perhaps try it to observe what happens.

0 votes
Lucas Knorr
Contributor
December 4, 2024

Hi @Vikrant Yadav

did you already provide the maxResults attribute in your request body? 

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 4, 2024

yes, I added maxResults=5000

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events