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.
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"
}
]
}