Skip to content

Enhancement: add more options to todo task add #4601

@Jwaegebaert

Description

@Jwaegebaert

There are a few additional properties available to the todoTask lately so let's include them in our command todo task add Graph - todoTask properties

Options to add

Option Description
--categories [categories] Comma-separated list of categories associated with the task.
--completedDateTime [completedDateTime] The date and time when the task was finished. This should be defined as a valid ISO 8601 string. 2021-12-16T18:28:48.6964197Z
--startDateTime [startDateTime] The date and time when the task is scheduled to start. This should be defined as a valid ISO 8601 string. 2021-12-16T18:28:48.6964197Z
--status [status] Indicates the state or progress of the task. The possible values are: notStarted, inProgress, completed, waitingOnOthers, deferred.

Additional examples

Add a task to Microsoft To Do with several categories

m365 todo task add --title "New task" --listName "My task list" --categories "Red category,Important"

Add a task to Microsoft To Do with a status and set a reminder for the task

m365 todo task add --title "New task" --listName "My task list" --status "inProgress" --isReminderOn

Remarks

When you specify the values for categories, consider the following. Each category can correspond to the displayName property of an outlookCategory that the user has defined. It is permissible to use distinct names.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions