tasks

List the tasks defined in the source of a project, a branch or an environment to find a task to run, schedule or edit; returns every task as one page with the source files that could not be read as tasks. Requires project.runs.read.

Arguments

  • projectReferenceString!required

  • inputSourceSelectorInput

  • input.sourceTargetKindSourceTargetKind

    The source to read; default runtimeTargetKind, else project. One of project, main_branch, environment, preview_branch.

  • input.runtimeTargetKindRuntimeTargetKind

    Used as the source to read when sourceTargetKind is omitted. One of main_branch, environment, preview_branch.

  • input.targetEnvironmentIdID

    Required with the kind environment.

  • input.targetBranchIdID

    Required with the kind preview_branch.

Responses

query Tasks($projectReference: String!) {  tasks(projectReference: $projectReference) {    data {      id      name      description      target      sourcePath      editMode      inputSchema      outputSchema      schedulable    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }    diagnostics {      kind      sourceKind      sourcePath      sourceId      code      message      details    }  }}
{  "data": {    "tasks": {      "data": [        {          "id": "string",          "name": "string",          "description": "string",          "target": "string",          "sourcePath": "string",          "editMode": "structured",          "inputSchema": {},          "outputSchema": {},          "schedulable": false        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      },      "diagnostics": [        {          "kind": "string",          "sourceKind": "string",          "sourcePath": "string",          "sourceId": "string",          "code": "string",          "message": "string",          "details": {}        }      ]    }  }}

The TaskList! in data.tasks.