From d1468ba3698025fcd083d23fd7f63954732a36f0 Mon Sep 17 00:00:00 2001 From: David Black Date: Tue, 22 Sep 2026 17:05:57 +1000 Subject: [PATCH] Historically a value of maxResults resulted in fetching everything - by explicitly checking that maxResults is 0 or False this behaviour was changed. Yes type checking should mostly prevent passing a None value for maxResults but we can simplify the check - any false like value for maxResults should result in fetching everything. Signed-off-by: David Black --- jira/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jira/client.py b/jira/client.py index 0d827226d..07dc821cb 100644 --- a/jira/client.py +++ b/jira/client.py @@ -938,7 +938,7 @@ def _fetch_pages_searchToken( ResultList: List of fetched items. """ DEFAULT_BATCH = 100 # Max batch size per request - fetch_all = maxResults in (0, False) # If False/0, fetch everything + fetch_all = not maxResults # If False/0/None, fetch everything page_params = (params or {}).copy() # Ensure params isn't modified page_params["maxResults"] = DEFAULT_BATCH if fetch_all else maxResults