ConsensusReviewStage Objects
stage_type
The Review stage for Consensus Workflows.get_tasks
assignee(Union[List[str], str, None]): A list of user emails or a single user email to filter tasks by assignee.data_hash(Union[List[UUID], UUID, List[str], str, None]): A list of data unit UUIDs or a single data unit UUID to filter tasks by data hash.dataset_hash(Union[List[UUID], UUID, List[str], str, None]): A list of dataset UUIDs or a single dataset UUID to filter tasks by dataset hash.data_title(Optional[str]): A string to filter tasks by data title.status(Union[ConsensusReviewTaskStatus, List[ConsensusReviewTaskStatus], None]): A list of task statuses or a single task status to filter tasks by their status.
ConsensusReviewTask instances with the following information:
uuid: Unique identifier for the task.created_at: Time and date the task was created.updated_at: Time and date the task was last edited.assignee: The user currently assigned to the task. The value is None if no one is assigned to the task.data_hash: Unique identifier for the data unit.data_title: Name/title of the data unit.options: List of ConsensusReviewOptions. ConsensusReviewOptions are the labels available for each subtask, including information such as annotator, label_branch_name, and label_hash.
ConsensusReviewTask Objects
status(ConsensusReviewTaskStatus): The status of the review task.data_hash(UUID): Unique ID for the data unit.data_title(str): Name of the data unit.assignee(Optional[str]): The user assigned to the task.options(List[ConsensusReviewOption]): Specify the labels for the task.
approve: Approves a task.reject: Rejects a task.assign: Assigns a task to a user.release: Releases a task from the current user.move: Moves the review task to another stage in the workflow.
approve
assignee(Optional[str]): User email to be assigned to the review task whilst approving the task.retain_assignee(bool): Retains the current assignee whilst approving the task. This is ignored ifassigneeis provided. An error will occur if the task does not already have an assignee andretain_assigneeis True.bundle(Optional[Bundle]): Optional bundle of actions to execute with the approval.
reject
assignee(Optional[str]): User email to be assigned to the review task whilst rejecting the task.retain_assignee(bool): Retains the current assignee whilst rejecting the task. This is ignored ifassigneeis provided. An error will occur if the task does not already have an assignee andretain_assigneeis True.bundle(Optional[Bundle]): Optional bundle of actions to execute with the rejection.
assign
assignee(str): The user to assign the task to.bundle(Optional[Bundle]): Optional bundle of actions to execute with the assignment.
release
bundle(Optional[Bundle]): Optional bundle of actions to execute with the release.
move
destination_stage_uuid(UUID): Unique identifier of the stage to move the task to.bundle(Optional[Bundle]): Optional bundle of actions to execute with the move.

