Skip to content

Commit aaa2d62

Browse files
authored
Fix for issue with pulling today's tasks from Todoist (#731)
modified: dbludeau.TodoistNoteplanSync/CHANGELOG.md modified: dbludeau.TodoistNoteplanSync/plugin.json modified: dbludeau.TodoistNoteplanSync/src/NPPluginMain.js
1 parent 09eb95b commit aaa2d62

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

dbludeau.TodoistNoteplanSync/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
See Plugin [README](https://github.com/NotePlan/plugins/blob/main/dbludeau.TodoistNoteplanSync/README.md) for details on available commands and use cases.
66

7+
## [0.4.1] - 2026-01-22 (dbludeau)
8+
- Fix for issue pulling todays tasks from Todoist.
9+
710
## [0.4.0] - 2025-09-15 (dbludeau)
811
- Updated plugin to use new Todoist V1 API.
912

dbludeau.TodoistNoteplanSync/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"noteplan.minAppVersion": "3.4.0",
55
"plugin.id": "dbludeau.TodoistNoteplanSync",
66
"plugin.name": "🧩 Todoist Noteplan Sync",
7-
"plugin.version": "0.4.0",
8-
"plugin.lastUpdateInfo": "Updated to use latest version of Todoist API",
7+
"plugin.version": "0.4.1",
8+
"plugin.lastUpdateInfo": "Fix to issue with pulling todays tasks from Todoist",
99
"plugin.description": "Import and sync tasks between Todoist and Noteplan",
1010
"plugin.author": "dbludeau",
1111
"plugin.requiredFiles-EDIT_ME": [

dbludeau.TodoistNoteplanSync/src/NPPluginMain.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,15 +407,16 @@ async function pullTodoistTasksByProject(project_id: string): Promise<any> {
407407
* @returns {Promise<any>} - promise that resolves into array of task objects or null
408408
*/
409409
async function pullTodoistTasksForToday(): Promise<any> {
410-
let filter = '?filter=today'
410+
let filter = '?query=today'
411411
if (setup.useTeamAccount) {
412412
if (setup.addUnassigned) {
413413
filter = `${filter} & !assigned to: others`
414414
} else {
415415
filter = `${filter} & assigned to: me`
416416
}
417417
}
418-
const result = await fetch(`${todo_api}/tasks${filter}`, getRequestObject())
418+
logInfo(pluginJson, `Fetching Todoist tasks with filter: ${todo_api}/tasks/filter${filter}`)
419+
const result = await fetch(`${todo_api}/tasks/filter${filter}`, getRequestObject())
419420
if (result) {
420421
return result
421422
}

0 commit comments

Comments
 (0)