Skip to content
Get started

List

projects.tasks.list(strproject_id) -> TaskListResponse
GET/projects/{projectId}/tasks

List the tasks of the project’s task source for the current user, to send one in the X-Scenario-Task-Id header. Returns 502 when the task source fails. Enterprise only.

ParametersExpand Collapse
project_id: str
ReturnsExpand Collapse
class TaskListResponse: …
tasks: List[Task]

The tasks of the task source, at most 1,000. Entries without a valid id are skipped, and a repeated id keeps its first entry.

id: str

The task id, to send in the X-Scenario-Task-Id header

name: Optional[str]

The task name

status: Optional[str]

The task status

List

import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
tasks = client.projects.tasks.list(
    "projectId",
)
print(tasks.tasks)
{
  "tasks": [
    {
      "id": "id",
      "name": "name",
      "status": "status"
    }
  ]
}
Returns Examples
{
  "tasks": [
    {
      "id": "id",
      "name": "name",
      "status": "status"
    }
  ]
}