Tasks
Functions
- getListOfTasks(clientId, accessToken) ⇒
Promise Retrieves a full list of tasks
- getPriorities(clientId, accessToken) ⇒
Promise Retrieves tasks flagged as next actions
- addTask(clientId, accessToken, task) ⇒
Promise Adds new task to the project
getListOfTasks(clientId, accessToken) ⇒ Promise
Retrieves a full list of tasks
Kind: global function
Returns: Promise - Tasks data
| Param | Type |
|---|---|
| clientId | string |
| accessToken | string |
getPriorities(clientId, accessToken) ⇒ Promise
Retrieves tasks flagged as next actions
Kind: global function
Returns: Promise - Tasks data
| Param | Type |
|---|---|
| clientId | string |
| accessToken | string |
addTask(clientId, accessToken, task) ⇒ Promise
Adds new task to the project
Kind: global function
Returns: Promise - Added task data
| Param | Type | Description |
|---|---|---|
| clientId | string | Application ID |
| accessToken | string | Users access token |
| task | object | Object containing task parameters |
| task.name | string | Name of the task (required) |
| task.projectId | string | ID of the project task should be added to. If not passed, the task will be added to the Inbox |
| task.completed | boolean | Completeness flag for the task |
| task.contexts | array | Array of contexts to be assigned to the task |
| task.dateTime | string | Date and time of the reminder in "Y-m-d H:M:s" format |
| task.next | boolean | Next action flag for the task |
| task.user | string | User ID the task should be assigned for |
| task.time | number | Time needed to accomplish the task (in minutes) |
| task.recur | number | Recurrency of the task where0: do not repeat (default)1: every day2: every week day3: every week4: every 2 weeks5: every month6: every half of a year7: every year8: every 3 weeks9: every 2 months10: every 3 months11: every 2 years12: every 2 days13: every 4 weeks |