Skip to content

New sample script: Cleanup completed Microsoft To Do tasks #2339

@garrytrinder

Description

@garrytrinder
Docs
Author Garry Trinder
Original Post https://garrytrinder.github.io/2021/04/cleanup-completed-microsoft-to-do-tasks-using-cli-for-microsoft365
Description Microsoft To Do is my task management tool of choice, I use it for tracking everything I do, which means I generate and complete a lot of tasks during a working week. So why have I written a script to delete completed tasks, they just get hidden right? One of the things that I wish would be better is the search capability in Microsoft To Do. I use the Microsoft To Do iOS app for managing my tasks and task lists, using keywords on tasks so that I can search on a keyword and return tasks containing that keyword which don’t all reside in the same task list. Unfortunately, the search does not provide any filters and returns all tasks containing the keyword including those that have been completed, this makes it hard to see at a glance the active tasks that I have against that keyword. Using the CLI for Microsoft 365 however we can easily solve this issue, as I am not concerned about tasks that I have completed, I have written a script that iterates across all of the task lists and removes the tasks that have been marked as completed.
Keywords Microsoft To Do

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions