Retrieve
projects.task_source.retrieve(strproject_id) -> TaskSourceRetrieveResponse
GET/projects/{projectId}/task-source
Get the project’s task source: the endpoint that lists the tasks of the team’s task tracker. The Authorization header value is never returned. Team admins only.
Retrieve
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
)
task_source = client.projects.task_source.retrieve(
"projectId",
)
print(task_source.task_source){
"taskSource": {
"hasAuthorization": true,
"mapping": {
"id": "x",
"tasksPath": "tasksPath",
"name": "x",
"status": "x"
},
"method": "GET",
"url": "url",
"body": "body",
"parameters": {
"foo": "string"
}
}
}Returns Examples
{
"taskSource": {
"hasAuthorization": true,
"mapping": {
"id": "x",
"tasksPath": "tasksPath",
"name": "x",
"status": "x"
},
"method": "GET",
"url": "url",
"body": "body",
"parameters": {
"foo": "string"
}
}
}