Imports your Todoist projects into Obsidian to track their status.
An Obsidian plugin that imports your Todoist projects into your vault so you can track them alongside your notes.
![]()
The plugin is read-only towards Todoist: it only ever reads data via the Todoist API and never writes anything back.
api.todoist.com) and nowhere else. It only does so when you run Import projects, or in the background when Auto-import is on (shortly after you open or return to Obsidian and every 15 minutes by default, only while Obsidian is open and only on devices with an API token). Set Auto-import to Off to connect only when you import manually.data.json holds only the name of the secret. On Linux, encryption requires kwallet or gnome-libsecret.TPT.tpt_tasks_labels, in this order. Leave empty to import all labels.TPT.base), and opens it. Its Active view lists your active projects with a Todoist icon, rank, parent, task count, next due date or deadline and colored labels. An existing file is never overwritten; a new one gets a number instead (TPT 1.base). The base is yours to change; the plugin does not update it later. It requires the Bases core plugin. If you rename the projects folder afterwards, update the folder in the base's filter or create a new base.Each Todoist project maps to one markdown file in the projects folder (flat, no nesting). The file name is the project name with characters that are not allowed in Obsidian file names (* " \ / < > : | ? # ^ [ ]) replaced by a space. A file counts as a project file as soon as its frontmatter has at least one tpt_ property.
All properties written by the plugin are prefixed with tpt_. You can add your own properties to a project file; the plugin never touches them.
| Property | Active | Archived | Deleted |
|---|---|---|---|
tpt_parent_project_name |
parent name or empty | empty | |
tpt_project_color |
✓ | ✓ | |
tpt_project_description |
if set | if set | |
tpt_project_id |
Todoist project id | ✓ | ✓ |
tpt_project_is_favorite |
✓ | ||
tpt_project_link |
todoist://project?id=… |
✓ | |
tpt_project_name |
original name | ✓ | ✓ |
tpt_project_rank |
position in Todoist's project tree (1-based) | ||
tpt_project_status |
active |
archived |
deleted |
tpt_tasks_count |
✓ | ||
tpt_tasks_labels |
set of all task labels, or only the labels listed in the Label filter setting (in that order) | ||
tpt_tasks_label_colors |
Todoist color of each label in tpt_tasks_labels, in the same order; empty for shared labels |
||
tpt_tasks_first_due_on / tpt_tasks_last_due_on |
earliest / latest due date | ||
tpt_tasks_first_deadline_on / tpt_tasks_last_deadline_on |
earliest / latest deadline | ||
tpt_tasks_next_content |
text of the next task, or empty |
The next task is the task carrying the Next task label, if that setting is set and such a task exists. Otherwise it is the task with the earliest due date or deadline, time of day included; a date without a time counts as the end of that day. A project whose tasks have neither gets an empty value. The task text is stored as entered in Todoist, including any markdown.
Remote projects are matched to local files by tpt_project_id. Files that do not have this property yet (written by an older version, or created by hand) are matched by file name instead and receive the id on the next import.
On import:
tpt_ properties replaced (case B). User properties stay in place, tpt_ properties are appended after them. If the project was renamed in Todoist, the file is renamed to follow it; links to the file in your vault are updated by Obsidian.tpt_project_id and tpt_project_name and gets tpt_project_status: deleted (case C). If a project with the same name is created in Todoist later, it takes over this file.Two projects whose names normalize to the same file name cannot both be tracked; the second one is skipped and a warning is logged to the developer console. Likewise, a renamed project keeps its old file name if the new one is already taken.
The plugin's stylesheet provides Todoist's project colors and a colored # icon for use in Bases formulas. For example, this formula shows the icon in the project's color and opens the project in Todoist:
formulas:
icon: link(tpt_project_link, html("<span class=\"tpt-hash tpt-color-" + tpt_project_color + "\">#</span>"))
This formula shows the task labels in their Todoist colors:
formulas:
labels: tpt_tasks_labels.map(html("<span class=\"tpt-label tpt-color-" + tpt_tasks_label_colors[index] + "\">" + value + "</span>"))
tpt-hash: the icon, drawn in the current --tpt-color. Without a color (for example on deleted projects) it is drawn in the muted text color.tpt-label: text in the current --tpt-color, or the normal text color without one.tpt-color-<name>: sets --tpt-color to a Todoist color, named as in tpt_project_color (blue, berry_red, …).--tpt-color-<name>: the color values. Override them in a CSS snippet to adjust them.These class and variable names may still change before version 1.0.
npm install
npm run dev # watch build
npm run build # type check + production build
npm run test # unit tests (node:test via tsx)
npm run lint
The plugin folder must live in <Vault>/.obsidian/plugins/todoist-project-tracker/. Reload Obsidian after building and enable the plugin under Settings → Community plugins.