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

  • 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: 'user@example.com'

Returns:

  • output: dict

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 = '<example@example.com>'
ango_sdk.assign_task(project_id=project_id, task_ids=[task_id], stage_filter='Label', email=email)

See also

get_tasks

Last updated