Read the editable source behind one task before changing it; returns the task source document with its source text, edit mode and the reasons it can only be edited as source. Requires project.runs.read.
Arguments
projectReferenceString!requiredtaskIdString!requiredinputSourceReadSelectorInputinput.sourceTargetKindWriteTargetKindThe source to read; default runtimeTargetKind, else project. One of
project,preview_branch.input.runtimeTargetKindRuntimeTargetKindUsed as the source to read when sourceTargetKind is omitted. One of
main_branch,environment,preview_branch.input.targetBranchIdIDRequired with the kind preview_branch.
input.targetEnvironmentIdIDNot supported for source reads; a non-null value is refused as invalid_input.
Responses
query TaskSource($projectReference: String!, $taskId: String!) { taskSource(projectReference: $projectReference, taskId: $taskId) { id name description target sourcePath source schedulable editMode sourceOnlyReasons }}{ "data": { "taskSource": { "id": "string", "name": "string", "description": "string", "target": "string", "sourcePath": "string", "source": "string", "schedulable": false, "editMode": "structured", "sourceOnlyReasons": [ "string" ] } }}The TaskSource! in data.taskSource.