Skip to main content

Tasks

Tasks are scripts with a defined Target and review workflow. You need to create Targets before you can run Tasks.

The Task Object#

target#

Targets define where scripts will run and using what credentials.

message#

An optional message gives an overview of the task functionalities and motivations. It will help the reviewer to understand and speed up the review workflow, besides being a great documentation resource.

status#

Status tells where a Task is in it's lifecycle.

drawing
StatusDescription
createdThe initial state of a task. Every task starts in the created state.
reviewingWhen the review workflow starts the task goes to the reviewing state.
approvedAfter the review workflow, if the task got all the required approvals, it goes to the approved state.
rejectedif one of the s rejects the task it goes to the rejected state. You need to incorporate the feedback left by the reviewer in Slack or other channel and create a new task.
runningAfter approval, you will can Run a task, after the run is triggered, the task goes to the running state.
successWhen task finishes running, it goes to the end state: success. After the task is finished, you can Get logs from a task
failedWhen task finishes running with a error, it goes to the failed state. You can Get logs from a task to understand what went wrong
Custom markup