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

List of Tasks API is not working with date filter #60

Open
MytsYurii opened this issue Aug 7, 2024 · 3 comments
Open

List of Tasks API is not working with date filter #60

MytsYurii opened this issue Aug 7, 2024 · 3 comments

Comments

@MytsYurii
Copy link

i'm trying to collect ClickUp tasks which are updated after specific date.
using this filter DateUpdatedGt.
and order by updated field.

as a result - DateUpdatedGt is not added to the final query and API return me all tickets , just ordered by updated field.

can you fix it?

@MytsYurii
Copy link
Author

@w-haibara can you please check this issue?

@MytsYurii
Copy link
Author

taskList, response, err := client.Tasks.GetTasks(ctx, lists[listNum].ID, &queryParams)

queryParams := clickup.GetTasksOptions{
Subtasks: true,
IncludeClosed: true,
Archived: collectArchived,
Reverse: false,
OrderBy: updated,
DateUpdatedGt: startCollectionDate,
}

this is how to reproduce the issue.

@w-haibara
Copy link
Contributor

@MytsYurii Thank you for reporting error.
Unfortunately, due to lack of time, I cannot solve this problem right away.
If you would like to help, we are looking forward to receiving your PR.

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