Create a task source file in the project source or a preview branch when a new unit of work must be runnable or schedulable; returns the task source document. Requires project.runs.write.
Arguments
projectReferenceString!requiredinputCreateTaskInput!requiredinput.idString!requiredBecomes the file name and the task id.
input.nameString!requiredinput.descriptionStringinput.schedulableBooleanWhether a schedule can start the task; default true.
input.sourceTargetKindWriteTargetKindThe source to write; default project. One of
project,preview_branch.input.targetBranchIdIDRequired with the kind preview_branch.
Responses
mutation CreateTask($projectReference: String!, $input: CreateTaskInput!) { createTask(projectReference: $projectReference, input: $input) { id name description target sourcePath source schedulable editMode sourceOnlyReasons }}{ "data": { "createTask": { "id": "string", "name": "string", "description": "string", "target": "string", "sourcePath": "string", "source": "string", "schedulable": false, "editMode": "structured", "sourceOnlyReasons": [ "string" ] } }}The TaskSource! in data.createTask.