Interface: Api
Entry point for task to Smokeball.Methods
all()
all(Gets the tasks associated with the matter in the current context or the specified matter id if provided.matterId?
):Promise
<Task
[]>
Parameters
matterId?
string
Returns
Promise
<Task
[]>
the tasks associated with the matter in the current context or the specified matter id.
Example
create()
create(Creates a new task for the specified matter id and returns the newly created task.request
):Promise
<Task
>
Parameters
request
CreateTaskRequest
the create request.
Returns
Promise
<Task
>
Example
delete()
delete(Marks task with the specified task id as deleted and returns the deleted task.id
):Promise
<Task
>
Parameters
id
string
Returns
Promise
<Task
>
Example
get()
get(Gets the task associated with the specified task id.id
):Promise
<Task
>
Parameters
id
string
Returns
Promise
<Task
>
the task associated with the specified task id.
Example
open()
open(Opens the specified task.taskId
):void
Parameters
taskId
string
the task to open.
Returns
void
Example
openNew()
openNew(Opens pre-populated task window.request
):void
Parameters
request
OpenNewRequest
the add task request.
Returns
void
Example
update()
update(Updates a task with the specified task id and returns the updated task.request
):Promise
<Task
>
Parameters
request
UpdateTaskRequest
the update request.
Returns
Promise
<Task
>