go-clickup icon indicating copy to clipboard operation
go-clickup copied to clipboard

List of Tasks API is not working with date filter

Open MytsYurii opened this issue 1 year ago • 3 comments

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 avatar Aug 07 '24 13:08 MytsYurii

@w-haibara can you please check this issue?

MytsYurii avatar Aug 07 '24 13:08 MytsYurii

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.

MytsYurii avatar Aug 07 '24 13:08 MytsYurii

@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.

w-haibara avatar Aug 14 '24 05:08 w-haibara