hansdoebel / n8n-nodes-ticktick

TickTick module for custom n8n node
https://www.npmjs.com/package/n8n-nodes-ticktick
MIT License
8 stars 0 forks source link

Get completed tasks (from 'project with data') #3

Open Tableautin opened 1 month ago

Tableautin commented 1 month ago

Tested the integration in the last days, and works mostly fine as far as I can say.

But there is one issue: When executing the 'get project with data' node, I only receive the tasks that are currently open (status: 0, no completedTime ). So every task that is completed is not available. Seems they are filtered somewhere (not sure if the API or the integration is filtering)

I want to create a daily log with all tasks completed that day, and for this appliance, I need to have all tasks within the project.

It would be great to have an option to get all data or to always get every tasks, so that filtering can be done afterwards.

Thanks for your help. If any more information is needed feel free to ask.

hansdoebel commented 1 month ago

Unfortunately, the TickTick v1 documentation doesn’t include details on how to retrieve completed tasks from projects (API Docs). However, I discovered that there may be a version 2 that isn’t publicly accessible yet. At the moment, I’m having difficulty sending requests with Postman due to authorization issues. When I log in through the browser, I can see the correct information.

Sourced from Reddit: https://www.reddit.com/r/ticktick/comments/yob4h4/api_v2_documentation/

LOGIN_URL = 'https://ticktick.com/api/v2/user/signon?wc=true&remember=true' BATCH_CHECK_URL = 'https://ticktick.com/api/v2/batch/check/0' BATCH_TASK_URL = 'https://api.ticktick.com/api/v2/batch/task' TASK_URL = 'https://api.ticktick.com/api/v2/task' ALL_COMPLETED_URL = 'https://api.ticktick.com/api/v2/project/all/completedInAll/'\

Tableautin commented 1 month ago

I found another implementation for TickTick (as a Python interface), and this seems to work with incomplete tasks (at least what is in the description ). Maybe you get the additional information you need:

TickTick-py: https://github.com/lazeroffmichael/ticktick-py Code with functions to get incomplete tasks: https://github.com/lazeroffmichael/ticktick-py/blob/main/ticktick/managers/tasks.py

I have no experience in this kind of API development, so I cannot help you more than providing information :-(