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