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

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

Open
Tableautin opened this issue Aug 6, 2024 · 3 comments
Open

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

Tableautin opened this issue Aug 6, 2024 · 3 comments

Comments

@Tableautin
Copy link

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
Copy link
Owner

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
Copy link
Author

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 :-(

@5ouma
Copy link

5ouma commented Oct 5, 2024

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

3 participants