TaskService
Index
Constructors
constructor
Parameters
httpRequest: BaseHttpRequest
Returns TaskService
Properties
publicreadonlyhttpRequest
Methods
publictaskAssetAppend
Parameters
__namedParameters: { requestBody: AppendAssetTaskParam }
Returns CancelablePromise<any>
any Successfully added the attachments to the task.
publictaskAssigneeAdd
Add an assignee
Bot-compatible
Adds an assignee to a task.Parameters
__namedParameters: { requestBody: AddTaskAssigneeParam }
Returns CancelablePromise<{ data?: AddTaskAssigneeResponse }>
any Successfully added an assignee for the task.
publictaskAssigneeRemove
Remove an assignee
Bot-compatible
Removes a member from the managing role for a task.Parameters
__namedParameters: { requestBody: DelTaskAssigneeParam }
Returns CancelablePromise<any>
any Successfully removed the assignee.
publictaskCreate
Create a task
Bot-compatible
Creates a task in a project.Parameters
__namedParameters: { requestBody: AddTaskParam }
Returns CancelablePromise<{ data?: AddTaskResponse }>
any Successfully posted the task.
publictaskFollowAdd
Add a collaborator
Bot-compatible
Adds a collaborator to a task.Parameters
__namedParameters: { requestBody: AddTaskFollowParam }
Returns CancelablePromise<{ data?: AddTaskFollowResponse }>
any Successfully added the collaborator.
publictaskFollowRemove
Remove a collaborator
Bot-compatible
Removes a collaborator from a task.Parameters
__namedParameters: { requestBody: DelTaskFollowParam }
Returns CancelablePromise<any>
any Successfully removed the collaborator.
publictaskInfo
Get a task's information
Bot-compatible
Retrieves information about a task.Parameters
__namedParameters: { bodyType?: plain | json_string; id: string }
Returns CancelablePromise<{ data?: GetTaskInfoResponse }>
any Successfully retrieved the task's information.
publictaskList
List out tasks
Bot-compatible
Lists out a given number of tasks from a project. This method uses the Swit API's pagination scheme.Parameters
__namedParameters: { limit?: number; offset?: string; parentId?: string; projectId: string; workspaceId?: string }
Returns CancelablePromise<{ data?: GetTaskListProjectResponse }>
any Successfully retrieved the tasks.
publictaskListByColumn
List out tasks by bucket
Bot-compatible
Lists out a given number of tasks from a bucket. This method uses the Swit API's pagination scheme.Parameters
__namedParameters: { bucketId: string; limit?: number; offset?: string; projectId: string }
Returns CancelablePromise<{ data?: GetTaskListByColumnResponse }>
any Successfully retrieved the tasks.
publictaskMove
Move a task
Bot-compatible
Moves a task into another project.Parameters
__namedParameters: { requestBody: MoveTaskParam }
Returns CancelablePromise<{ data?: MoveTaskResponse }>
any Successfully moved the task.
publictaskMyTaskList
List out my tasks
Bot-compatible
Lists out "my tasks" of the user from a workspace.Parameters
__namedParameters: { limit?: number; offset?: string; workspaceId: string }
Returns CancelablePromise<{ data?: GetTaskListMineResponse }>
any Successfully retrieved my tasks.
publictaskRemove
Delete a task
Bot-compatible
Deletes a task from a project.Parameters
__namedParameters: { requestBody: DelTaskParam }
Returns CancelablePromise<any>
any Successfully deleted the task.
publictaskStatusUpdate
Update the status of a task Updates the status of a task.
Parameters
__namedParameters: { requestBody: { project_id?: string; task_id?: string; to_status_id?: string; workspace_id?: string } }
Returns CancelablePromise<TaskResponse>
TaskResponse Successfully updated the status of the task.
publictaskUpdate
Update a task
Bot-compatible
Updates a task in a project.Parameters
__namedParameters: { requestBody: PutTaskParam }
Returns CancelablePromise<{ data?: PutTaskResponse }>
any Successfully updated the task.
Add attachments Adds file attachments to a task.
ApiError