dataset.tasks.get(task_id='task_id') # # Get a Task object to use in your code. # # **Prerequisites**: You must be in the role of an *owner* or *developer* or *annotation manager* who has been assigned the task. # # :param str task_name: optional - search by name # :param str task_id: optional - search by id # :return: task object # :rtype: dtlpy.entities.task.Task # #
{- "id": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "creator": "string",
- "name": "string",
- "taskOwner": "string",
- "dueDate": 0,
- "datasetId": "string",
- "recipeId": "string",
- "projectId": "string",
- "spec": {
- "type": "annotation"
}, - "hasParent": true,
- "query": "string",
- "assignmentIds": [
- "string"
], - "status": "open",
- "metadata": {
- "system": {
- "property1": null,
- "property2": null
}
}, - "totalItems": 0,
- "itemStatus": {
- "completed": 0,
- "remaining": 0,
- "actions": {
- "property1": 0,
- "property2": 0
}
}, - "progress": 0,
- "forReview": 0,
- "issues": 0,
- "availableActions": [
- {
- "action": "string",
- "displayName": "string",
- "color": "string",
- "icon": "string"
}
], - "error": "string",
- "priority": 0,
- "emptyInactiveAssignments": 0,
- "description": {
- "content": "string",
- "createdBy": "string",
- "updatedBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}