Skip to content

Only 100 results fetched if maxResults is larger than 100 #1819

Open
@bartromgens

Description

@bartromgens

Bug summary

Problem
When I request more than 100 max results (for example: maxResults=200) via:

 client.search_issues(jql_str=jql_str, maxResults=200)

I expect the client to batch get all pages and return me 200 results.
However, it unexpectedly limits the number of results to 100.

Is there an existing issue for this?

  • I have searched the existing issues

Jira Instance type

Jira Cloud (Hosted by Atlassian)

Jira instance version

No response

jira-python version

3.6.0

Python Interpreter version

3.8

Which operating systems have you used?

  • Linux
  • macOS
  • Windows

Reproduction steps

# some query that gives in more than 100 results
jql_str = "project = XX"

# maxResults = False
results = client.search_issues(jql_str=jql_str, maxResults=False)
print(f"results with maxResults=False: {len(results)}")

# maxResults = 200
results = client.search_issues(jql_str=jql_str, maxResults=200)
print(f"results with maxResults=200: {len(results)}")

Stack trace

results with maxResults=False: 248
results with maxResults=200: 100

Expected behaviour

I expect the client to batch get all pages and return me 200 results.
However, it unexpectedly limits the number of results to 100.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions