review_task
imerit_ango.sdk.SDK.
review_task(task_id, review_status, pct_details)
Automatically review a task by updating its review status and adding review details.
Parameters
task_id: string
The unique identifier for the task. You can find the task ID in the user interface or retrieve it using the get_tasks function.
review_status: ReviewStatus
The review outcome to be applied to the task.
Options:
ReviewStatus.ACCEPTED
ReviewStatus.REJECTED
from imerit_ango.models.enums import ReviewStatuspct_details: dict
Additional review details, primarily used for PCT review workflows.
Example:
{"reason": "Missing annotations", "errorCodes": ["E001", "E002"]}
Returns:
output: dict
A dictionary containing the result of the operation.
Including a
statusfield indicating whether the request was successful and adatafield containing the response payload with updated resources produced by the operation.
How to verify in Ango Hub?
After successfully executing the review_task function, you can validate the changes directly in Ango Hub.
Navigate to: Projects → [Your Project] → Tasks
Filter the relevant tasks as needed.
Open a task and access the Stage History section from the right sidebar.
Confirm that the task has been reviewed and the correct status has been applied.
Changes made via the SDK are reflected in Ango Hub in near real-time. If updates are not immediately visible, please refresh the page.
Example
Accept a task in review stage:
Reject a task and include additional review details (applicable to PCT projects only):
Last updated