List tasks

tasks(projectReference: String!, input: SourceSelectorInput): TaskList!

Requires project.runs.read.

Arguments

ArgumentTypeRequired
projectReferenceString!Yes
inputSourceSelectorInputNo

Input fields

input

SourceSelectorInput

FieldTypeRequiredDescription
sourceTargetKindSourceTargetKindNoThe source to read; default runtimeTargetKind, else project.
runtimeTargetKindRuntimeTargetKindNoUsed as the source to read when sourceTargetKind is omitted.
targetEnvironmentIdIDNoRequired with the kind environment.
targetBranchIdIDNoRequired with the kind preview_branch.

Response

Returns TaskList!. Open the type for its fields and nested types.

FieldTypeDescription
data[Task!]!
pageInfoPageInfo!
diagnostics[ProjectSourceFileDiagnostic!]!Task source files that could not be read as a task.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query Tasks($projectReference: String!, $input: SourceSelectorInput) {
  tasks(projectReference: $projectReference, input: $input) {
    data {
      id
      name
      description
      editMode
      inputSchema
    }
    pageInfo {
      hasNextPage
      endCursor
      hasPreviousPage
      startCursor
    }
    diagnostics {
      code
      details
      kind
      message
      sourceId
    }
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001"
}