リポジトリの原文
見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。
Create a Task List and Add Tasks
PREREQUISITE: Load the following skills to execute this recipe: gws-tasksSet up a new Google Tasks list with initial tasks.
Steps
- Create task list:
gws tasks tasklists insert --json '{"title": "Q2 Goals"}' - Add a task:
gws tasks tasks insert --params '{"tasklist": "TASKLIST_ID"}' --json '{"title": "Review Q1 metrics", "notes": "Pull data from analytics dashboard", "due": "2024-04-01T00:00:00Z"}' - Add another task:
gws tasks tasks insert --params '{"tasklist": "TASKLIST_ID"}' --json '{"title": "Draft Q2 OKRs"}' - List tasks:
gws tasks tasks list --params '{"tasklist": "TASKLIST_ID"}' --format table

