public class TasksApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
TasksApi(Credentials credentials) |
TasksApi(Credentials credentials,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<Task> |
addTask(java.lang.Long projectId,
AddTaskRequest request) |
ResponseObject<TaskComment> |
addTaskComment(java.lang.Long projectId,
java.lang.Long taskId,
CreateTaskCommentRequest request) |
ResponseObject<TaskSettingsTemplate> |
addTaskSettingsTemplate(java.lang.Long projectId,
AddTaskSettingsTemplateRequest request) |
void |
deleteTask(java.lang.Long projectId,
java.lang.Long taskId) |
void |
deleteTaskComment(java.lang.Long projectId,
java.lang.Long taskId,
java.lang.Long commentId) |
void |
deleteTaskSettingsTemplate(java.lang.Long projectId,
java.lang.Long taskSettingsTemplateId) |
ResponseObject<Task> |
editTask(java.lang.Long projectId,
java.lang.Long taskId,
java.util.List<PatchRequest> request) |
ResponseObject<Task> |
editTaskArchivedStatus(java.lang.Long taskId,
java.lang.Long projectId,
java.util.List<PatchRequest> request) |
ResponseObject<TaskComment> |
editTaskComment(java.lang.Long projectId,
java.lang.Long taskId,
java.lang.Long commentId,
java.util.List<PatchRequest> request) |
ResponseObject<TaskSettingsTemplate> |
editTaskSettingsTemplate(java.lang.Long projectId,
java.lang.Long taskSettingsTemplateId,
java.util.List<PatchRequest> request) |
ResponseObject<DownloadLink> |
exportTaskStrings(java.lang.Long projectId,
java.lang.Long taskId) |
ResponseObject<Task> |
getTask(java.lang.Long projectId,
java.lang.Long taskId) |
ResponseObject<TaskComment> |
getTaskComment(java.lang.Long projectId,
java.lang.Long taskId,
java.lang.Long commentId) |
ResponseObject<TaskSettingsTemplate> |
getTaskSettingsTemplate(java.lang.Long projectId,
java.lang.Long taskSettingsTemplateId) |
ResponseList<Task> |
listTasks(java.lang.Long projectId,
java.lang.Integer limit,
java.lang.Integer offset,
Status status,
java.lang.Integer assigneeId) |
ResponseList<Task> |
listTasks(java.lang.Long projectId,
java.lang.Integer limit,
java.lang.Integer offset,
Status status,
java.lang.Integer assigneeId,
java.util.List<OrderByField> orderBy) |
ResponseList<Task> |
listTasks(java.lang.Long projectId,
ListTasksParams params)
Lists tasks for a given project, filtered by multiple statuses.
|
ResponseList<TaskComment> |
listTasksComments(java.lang.Long projectId,
java.lang.Long taskId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<TaskSettingsTemplate> |
listTaskSettingsTemplates(java.lang.Long projectId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<Task> |
listUserTasks(java.lang.Integer limit,
java.lang.Integer offset,
Status status,
BooleanInt isArchived) |
ResponseList<Task> |
listUserTasks(java.lang.Integer limit,
java.lang.Integer offset,
Status status,
BooleanInt isArchived,
java.util.List<OrderByField> orderBy) |
graphql, graphqlpublic TasksApi(Credentials credentials)
public TasksApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<Task> listTasks(java.lang.Long projectId, java.lang.Integer limit, java.lang.Integer offset, Status status, java.lang.Integer assigneeId) throws HttpException, HttpBadRequestException
projectId - project identifierlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)status - filter by statusassigneeId - filter by assignee idHttpExceptionHttpBadRequestExceptionpublic ResponseList<Task> listTasks(java.lang.Long projectId, java.lang.Integer limit, java.lang.Integer offset, Status status, java.lang.Integer assigneeId, java.util.List<OrderByField> orderBy) throws HttpException, HttpBadRequestException
projectId - project identifierlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)status - filter by statusassigneeId - filter by assignee idorderBy - list of OrderByFieldHttpExceptionHttpBadRequestExceptionpublic ResponseList<Task> listTasks(java.lang.Long projectId, ListTasksParams params) throws HttpException, HttpBadRequestException
projectId - project identifierparams - Query paramsHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Task> addTask(java.lang.Long projectId, AddTaskRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<DownloadLink> exportTaskStrings(java.lang.Long projectId, java.lang.Long taskId) throws HttpException, HttpBadRequestException
projectId - project identifiertaskId - task identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Task> getTask(java.lang.Long projectId, java.lang.Long taskId) throws HttpException, HttpBadRequestException
projectId - project identifiertaskId - task identifierHttpExceptionHttpBadRequestExceptionpublic void deleteTask(java.lang.Long projectId,
java.lang.Long taskId)
throws HttpException,
HttpBadRequestException
projectId - project identifiertaskId - task identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Task> editTask(java.lang.Long projectId, java.lang.Long taskId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId - project identifiertaskId - task identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseList<Task> listUserTasks(java.lang.Integer limit, java.lang.Integer offset, Status status, BooleanInt isArchived) throws HttpException, HttpBadRequestException
limit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)status - filter by statusisArchived - filter by archived statusHttpExceptionHttpBadRequestExceptionpublic ResponseList<Task> listUserTasks(java.lang.Integer limit, java.lang.Integer offset, Status status, BooleanInt isArchived, java.util.List<OrderByField> orderBy) throws HttpException, HttpBadRequestException
limit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)status - filter by statusisArchived - filter by archived statusorderBy - list of OrderByFieldHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Task> editTaskArchivedStatus(java.lang.Long taskId, java.lang.Long projectId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
taskId - task identifierprojectId - project identifier (filter)request - request object (only for archived flag)HttpExceptionHttpBadRequestExceptionpublic ResponseList<TaskSettingsTemplate> listTaskSettingsTemplates(java.lang.Long projectId, java.lang.Integer limit, java.lang.Integer offset)
projectId - project identifier (filter)limit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)public ResponseObject<TaskSettingsTemplate> addTaskSettingsTemplate(java.lang.Long projectId, AddTaskSettingsTemplateRequest request)
projectId - project identifierrequest - request objectpublic ResponseObject<TaskSettingsTemplate> getTaskSettingsTemplate(java.lang.Long projectId, java.lang.Long taskSettingsTemplateId)
projectId - project identifiertaskSettingsTemplateId - task settings template identifierpublic void deleteTaskSettingsTemplate(java.lang.Long projectId,
java.lang.Long taskSettingsTemplateId)
projectId - project identifiertaskSettingsTemplateId - task settings template identifierpublic ResponseObject<TaskSettingsTemplate> editTaskSettingsTemplate(java.lang.Long projectId, java.lang.Long taskSettingsTemplateId, java.util.List<PatchRequest> request)
projectId - project identifiertaskSettingsTemplateId - task settings template identifierrequest - request objectpublic ResponseList<TaskComment> listTasksComments(java.lang.Long projectId, java.lang.Long taskId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifiertaskId - task identifierlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseObject<TaskComment> addTaskComment(java.lang.Long projectId, java.lang.Long taskId, CreateTaskCommentRequest request) throws HttpException, HttpBadRequestException
projectId - project identifiertaskId - task identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<TaskComment> getTaskComment(java.lang.Long projectId, java.lang.Long taskId, java.lang.Long commentId) throws HttpException, HttpBadRequestException
projectId - project identifiertaskId - task identifiercommentId - comment identifierHttpExceptionHttpBadRequestExceptionpublic void deleteTaskComment(java.lang.Long projectId,
java.lang.Long taskId,
java.lang.Long commentId)
throws HttpException,
HttpBadRequestException
projectId - project identifiertaskId - task identifiercommentId - task identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<TaskComment> editTaskComment(java.lang.Long projectId, java.lang.Long taskId, java.lang.Long commentId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId - project identifiertaskId - task identifiercommentId - task identifierrequest - request objectHttpExceptionHttpBadRequestException