Assigning & Querying Tasks
The SDK offers multiple ways to query/search through your project tasks and programmatically assign them to various users.
Search by Task Name
Use list_tasks
to search for tasks by name
and get their corresponding task_id
. Often, users will have Task name
s readily accessible, and can use list_tasks
to get the corresponding task_id,
which may be needed in other SDK functions.
Please see a detailed reference for list_tasks
here.
Assign Tasks to a User
Use assign_task
when you already have the task_id
you want to assign to a particular user. If you don’t have the task_id
, you can query all the Tasks using list_tasks
or query tasks assigned to a particular user/unassigned tasks using list_tasks(user_id="...")
.
Assign to a Specific User
Retrieve Queued Tasks
Use list_tasks
in conjunction with a specific user_id
when you want to retrieve the Tasks assigned to a particular user. This can be useful in preparation for using assign_tasks
to programmatically assigning unassigned tasks, or put_tasks
to programmatically label/review tasks assigned to you.
Retrieve Tasks Assigned to Specific User
Retrieve Unassigned Tasks
You can also fetch all unassigned Tasks in a particular stage. This information may be useful when choosing which Tasks to assign to users.
Retrieve Tasks Assigned to You
With the correct configuration of list_tasks(), you can perform functions as specific as retrieving a list of Tasks from a specific Stage to your specific API key. Please see the code snippet below for an example:
Last updated