pycontribs / jira

Python Jira library. Development chat available on https://matrix.to/#/#pycontribs:matrix.org
https://jira.readthedocs.io
BSD 2-Clause "Simplified" License
1.96k stars 870 forks source link

jira.worklogs() only returning the oldest 5000 worklogs for an. issue #1576

Open kleb121212 opened 1 year ago

kleb121212 commented 1 year ago

Bug summary

I'm not sure if this is a bug or a feature (or if there is an existing workaround), but I have a use-case where I need to pull the most recent worklogs for an issue with more than 5000 worklogs and I can't seem to figure out how to do this/I'm not sure the functionality exists.

Is there an existing issue for this?

Jira Instance type

Jira Server or Data Center (Self-hosted)

Jira instance version

No response

jira-python version

3.2.0

Python Interpreter version

3.8

Which operating systems have you used?

Reproduction steps

# 1. Given a Jira client instance
jira: JIRA
# 2. When I call the function with argument x
jira.worklogs('ABC-123')
# 3.
returns list of oldest 5000 worklogs

Stack trace

NA

Expected behaviour

I'd get the most recent 5000 worklogs for an issue and not the oldest

Additional Context

No response