Tasks

Create Task

User

Tasks are added, with the status needsaction, but with no dates.

gam user <User Email Address> create task <Task List ID> title "<New Task>" notes "<Task Notes>"

Using the <Tasklist Title>, instead of the <Task List ID>.

gam user <User Email Address> create task "'tltitle:<Tasklist Title>'" title "<Task Title>" notes "<Task Notes>"

Create Task NeedsAction

User

If a time is not added, the due date will be just the date.

gam user <User Email Address> create task <Task List ID> title "<New Task Title>" notes "<Task Notes>" status needsaction due "yyyy-mm-dd:hh:hh:ss+GMT-OffSet"

Create Tasklisk

User

gam user <User Email Address> create tasklist title "<New Task List Title>"

Delete Task

Single Task

The <Task ID> is <tasklistId>/<id> obtained from the print tasks command

gam user <User Email Address> delete task <Task ID>

Delete TaskLists

Single Tasklist

This will delete the Task List and all the tasks under that list.

gam user <User Email Address> delete tasklists <Task List ID>

Using the <Tasklist Title>, instead of the <Task List ID>.

gam user <User Email Address> delete tasklists "'tltitle:<Tasklist Title>'"

CSV

Using a Google Sheet created with the print tasklsist command and the Tasklist Title.

gam csv gsheet <User Email Address> <Sheet ID> '<Sheet (tab) Name>' gam user ~User delete tasklists "'tltitle:~~title~~'"

Info Task

The <Task ID> is the <tasklistId>/<id> obtained from a print tasks command.

gam user <User Email Address> info task <Task ID>

Info Tasklist

Single Tasklist

gam user <User Email Address> info tasklist <Task List ID>

Print Tasks

User

This command will show the tasklistId that is needed when creating new tasks. However this will not show empty Task Lists.

gam user <User Email Address> print tasks todrive

Print Tasklists

User

gam user <User Email Address> print tasklists todrive