Skip to main content

todo task get

Gets a specific task from a Microsoft To Do task list

Usage

m365 todo task get [options]

Options

-i, --id <id>

The ID of the task in the list.

--listName [listName]

The name of the task list to return tasks from. Specify either listName or listId, but not both.

--listId [listId]

The id of the task list to return tasks from. Specify either listName or listId, but not both.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

Gets a specific task from a Microsoft To Do tasks list based on the name of the list and the task id

m365 todo task get --listName "My task list" --id "AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAEX8ECDAADEwEFouXWWT50CfwqSN9cpAAEX8GuPAAA="

Gets a specific task from a Microsoft To Do tasks list based on the id of the list and the task id

m365 todo task get --listId "AQMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MAAuAAADMN-7V4K8g0q_adetip1DygEAxMBBaLl1lk_dAn8KkjfXKQABF-BAgwAAAA==" --id "AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAEX8ECDAADEwEFouXWWT50CfwqSN9cpAAEX8GuPAAA="

Response

{
"importance": "normal",
"isReminderOn": false,
"status": "notStarted",
"title": "Stay healthy",
"createdDateTime": "2022-10-23T14:05:09.2673009Z",
"lastModifiedDateTime": "2022-10-23T14:15:11.3180312Z",
"hasAttachments": false,
"categories": [],
"id": "AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAEX8ECDAADEwEFouXWWT50CfwqSN9cpAAEX8GuPAAA=",
"body": {
"content": "",
"contentType": "text"
}
}
CTRL + M