Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to get more than 10000 worklogs? #5

Open
skromez opened this issue Sep 28, 2021 · 1 comment
Open

is it possible to get more than 10000 worklogs? #5

skromez opened this issue Sep 28, 2021 · 1 comment

Comments

@skromez
Copy link

skromez commented Sep 28, 2021

Hi, I'm trying to fetch all the existing work logs through your API

worklogs = TrackerClient().worklog.find()
for worklog in worklogs:
   print(worklog.id)

this code works fine until I'm exceeding the 10000th work log, then API throws a 400 error which says: Request exceeds 10000 items limit

How do I get ALL the existing work logs if there's more than 10000 of them?

@ljql
Copy link

ljql commented Jan 4, 2022

Hello.

Try to use filters for worklog searching.

Filter createdAt will help you to get disjoint results in several consecutive requests
https://github.com/yandex/yandex_tracker_client/blob/master/yandex_tracker_client/collections.py#L1013

All tracker clients are based on api. Full documentation see in https://cloud.yandex.com/en-ru/docs/tracker/concepts/issues/get-worklog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants