assign_task
imerit_ango.sdk.SDK.
assign_task(project_id, task_ids, stage_filter, email)
Assign a list of tasks to a specific user.
Parameters
project_id: string
The unique identifier for the project. You can find the project ID in the user interface or retrieve it using the
list_projectsfunction.
task_ids: List[str]
A list of task IDs to be assigned. Task IDs can be obtained from the UI, and from the
get_tasksfunction.Example:
['0000000aa0a00a0000aaaa0a', '0000000bb0b00b0000bbbb0b']
stage_filter: string
ID of the stage on which the assignee will work.
Example:
"206f2f63-ac2d-4458-92d8-b84fd7264db3"or, in the case of the default labeling stage,"Label".
email: string
The email address of the project member who will be assigned to the task.
Example: 'user1@example.com'
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.
Assigning a task to a new user replaces the current assignee for that task.
How to verify in Ango Hub?
After successfully executing the assign_task function, you can validate the changes directly in Ango Hub.
Navigate to: Projects → [Your Project] → Tasks
Filter the task using the Task ID or other relevant filters.
Confirm that the tasks have been assigned to the correct project member.
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
See also
Last updated