new TaskList()
Methods
-
fetchTasks()
-
Fetches tasks and queues for the logged in user. It triggers the fetched event.
-
fetchTeamTasks(managerOid)
-
Fetches direct reports and their tasks for a Manager. It triggers the teamQueuesfetched event.
Parameters:
Name Type Description managerOid
Oid of the Manager -
findIndex(searchField, value) → {Number}
-
Searches tasks in the current tasklist on the basis of a specific task attribute & its value, and returns an index of the task in the current tasklist.
Parameters:
Name Type Description searchField
String Task attribute name. value
String Value of the attribute Returns:
Index of the task, if found, else -1.- Type
- Number
-
updateTask(index, task)
-
Updates a task in the current tasklist.
Parameters:
Name Type Description index
Number Index of the task in current tasklist task
Object Object containing task data