Spanish Total.js
English
Documentation For AI agents
Contents

Task fields and templates

The fields of a task and how templates fill them from the data.

.md Website
On this page

Besides its data, every task has six text fields. They are shown in the Inbox and in Tasks, so people can tell the tasks apart.

FieldTemplate settingShown in
NameTemplate nameInbox, Tasks, the title of the task window
SubjectTemplate subjectInbox, Tasks
NumberTemplate numberInbox, Tasks
ResultTemplate resultTasks
ReferenceTemplate referenceTasks
BodyTemplate bodystored with the task

Templates

Form nodes with an action, and the components Create, Step, Close and Subtasks, have a template for each field. A template is text with placeholders in double curly brackets. value is the data that arrives, for example the values of the form:

Leave: {{ value.reason }}
Approved: {{ value.comment }}

A template can also be plain text, for example Approved in Template result of a Close node.

When a step has no template for a field, the field keeps its value from the earlier steps. When a Create has no Template name, the task gets the name of the output (form) or of the node.

Data of the task

The values of the forms are stored in the data of the task, under the path of each field of the form. Every step adds its values, so a later form receives all values sent so far. With Path for storing form data, the values of one node are stored under that key instead, for example approval.

Made in Europe