Creating Tasks for a Specific Google Chat Space

405 views
Skip to first unread message

Google Apps Script Community

unread,
Nov 12, 2021, 2:25:57 PM11/12/21
to Google Apps Script Community
I found this bit of script here to create new tasks. I'd like to know if it's possible to also add these tasks to a given space on Google Chat. Also, can we assign them to a specific member of that space and set a due date?

Thank you so much for your time.

/**
 * Adds a task to a tasklist.
 * @param {string} taskListId The tasklist to add to.
 */
function addTask(taskListId) {
  var task = {
    title: 'Pick up dry cleaning',
    notes: 'Remember to get this done!'
  };
  task = Tasks.Tasks.insert(task, taskListId);
  Logger.log('Task with ID "%s" was created.', task.id);
}

Reply all
Reply to author
Forward
0 new messages