assign_task
imerit_ango.sdk.SDK.
assign_task(project_id, task_ids, stage_filter, email)
Assign a task to a specific user with email.
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_projects
function.
task_ids: list
A list of task IDs to be assigned. Task IDs can be obtained from the UI, and from get_tasks.
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
Mail address with which the user is to be assigned the task to register.
Example:
'[email protected]'
Returns:
output: dict
A dictionary containing the result of the operation.
Example
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK
load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')
ango_sdk = SDK(api_key)
task_id = '<YOUR TASK ID>'
email = '<[email protected]>'
ango_sdk.assign_task(project_id=project_id, task_ids=[task_id], stage_filter='Label', email=email)
Last updated