# Custom fields: 19 field types for tasks

How to add custom fields to Truetask tasks and boards, from the 19 field types and their options to relations, rollups, formulas and where values show.

URL: https://docs.truetask.io/tasks/custom-fields

A custom field in Truetask adds a column of your own to tasks: a story point estimate, a client, a contract value, a warranty date.
Fields are defined once and attached to the boards that need them, and their values show on the task, in [List view](https://docs.truetask.io/boards/list) columns, in [filters](https://docs.truetask.io/boards/filters), on [forms](https://docs.truetask.io/forms/) and in [automations](https://docs.truetask.io/automations/).

## The three kinds of field

| Kind | Lives on | Where it shows |
| --- | --- | --- |
| A board's own field | One board | Every task on that board. |
| **Task fields** | The workspace | Any board you add it to, on every task there. |
| **Board fields** | The workspace | The board itself, one value per board, on the Board details panel. |

A board field is a property of the board, not of a task: a **Client** or a **Status** for the whole board.
See [Boards](https://docs.truetask.io/boards/).

## The types

19 types, grouped by what they hold.

| Type | Holds | Options |
| --- | --- | --- |
| Text | One line | |
| Long text | A paragraph, edited in a popover | |
| Number | A figure | |
| Select | One or several choices | The choices, and **Single** or **Multiple** |
| Date | A day | **Highlight past dates** |
| URL | A link, openable from the cell | |
| Email | An address, validated | |
| Phone | A number | |
| Checkbox | Yes or no | |
| Rating | Stars | Scale, 3 to 10 (default 5) |
| Currency | Money, formatted for your locale | The ISO code, 16 to choose from |
| Percent | A percentage | |
| Duration | A span, entered as `1h 30m`, `90m` or `1:30` | |
| Person | One or several board members | Single or multiple |
| Relation | Links to tasks or boards | See below |
| Rollup | A figure computed over other tasks | See below |
| Formula | A figure computed from this task's own fields | The expression |
| Created on | When the task was made | |
| Last modified | When it last changed | |

Rollup, Formula, Created on and Last modified are computed.
They are read-only, store no value of their own, and can never be edited on a task.

Every field also has an **Alignment** (left, center, right) that sets where its List view column sits.
The default follows the type: prose left, checkboxes and ratings centred, figures and dates right.

## Creating a field

- **From a task.**
**New field...** in the task's **+** chip, or at the foot of the **Fields** list in its brief.
- **From List view.**
**Add field** at the right-hand end of the column header row.
- **From the manager.**
**Add field**, then either **Create new** or pick an existing one out of **Task fields**.

When you create a field you choose whether it is **Available to other boards**.
A shared field can then be added to any board from the manager; a board-local one stays where it is.
Board admins create fields on their board.
Only workspace owners and admins can create global task fields and board fields.

![Truetask new field form opened from a task's Fields list, with the name typed and the field type list open](https://docs.truetask.io/screenshots/custom-field-new.webp)

## The Custom Fields manager

Open the board page menu (the dots next to the board title) and choose **Custom Fields**.

![Truetask Custom Fields manager dialog](https://docs.truetask.io/screenshots/custom-fields-manager.webp)

The left rail holds **All custom fields**, then the global groups **Task fields** and **Board fields**, then every board you can see.
The table shows each field's name, type, who made it, when, and where it is used.

A field that reads from an archived board carries a **Source archived** mark.
It is hidden on every board while that board is archived, and restoring the board brings it back.
See [Archiving a board](https://docs.truetask.io/boards/#archive-a-board).

From a row's menu you can:

| Action | What it does |
| --- | --- |
| **Duplicate** | Copies the field and its options. |
| **Move to workspace** | Turns a board-local field into a global task field. |
| **Make board-local** | The reverse. |
| **Remove from this board** | Detaches the field. Values are kept. |
| **Hide on this board** | For a board field only: opts one board out. |
| **Delete** | Removes the field and every stored value. The confirmation says how many. |

Deleting is the only destructive one, and it is not reversible.

## Arranging, grouping and hiding fields

A board decides which fields appear on a task, in what order, and under what headings.
That layout is the board's, so every task on it reads the same way.

Board admins arrange it from the task frame: click the pencil beside **Fields** in the brief, or choose **Arrange fields** in the frame menu (**Done arranging** ends it).
Drag fields into order, use **New group** to add a named section, and drop fields into it, or use **Move to group** on a field.
**Delete group** returns its fields to the ungrouped section.

![Truetask task brief in arrange mode, with drag handles on the fields and New group](https://docs.truetask.io/screenshots/task-fields-arrange.webp)
A database record has the same rows in its menu.
Truetask AI can also group, order and hide a board's fields when you ask it to.

Each field carries a **Show** rule, and on a database record so do the record's own rows (**Owner**, **Tags** and its picture):

| Rule | Behaviour |
| --- | --- |
| **Always** | The row is there whether or not it has a value. |
| **Only when it has a value** | The row appears once something is filled in. |
| **Never** | Hidden on the task. It still exists as a column and a filter. |

A computed field always counts as having a value.
A field set to Never still holds its data; the rule is about the task, not about storage.

On a task, a field with a value also shows as a chip in the band under the title while the brief is folded, and an empty one is offered in the **+** chip.

## Relations

A relation field links a task to other records.

| Option | Choices |
| --- | --- |
| **Links to** | Tasks, or Boards |
| **From** | Same board, Board or database, or Any board or database |
| **Kind** | Boards and databases, Boards, or Databases |
| **New records** | Auto (the target's default form, else its sheet), Record sheet / Task sheet, or Off |
| **Show task status** | Puts the flow-state glyph on each linked task |
| Single or multiple | |

Linked records render as chips.
Hold <kbd>Shift</kbd> over a chip to peek at the record without leaving the task.
A record you have no access to shows as **Private task** or **Private board**.

The other side of a relation is **Referenced by**, a read-only row at the foot of the task's **Fields** list that lists everything pointing at this task and names the field that links it.
Relations are how [database boards](https://docs.truetask.io/boards/databases) connect to work boards: a task links to a Client record, a Client record lists the tasks that reference it.

## Rollups

A rollup aggregates over a set of tasks.
It needs three answers.

**Source** says which tasks count:

| Source | Set |
| --- | --- |
| **Linked tasks** | The targets of one of this record's relation fields. |
| **Tasks linking here** | The tasks pointing at this one through one named relation field. |
| **Any record linking here** | Everything pointing at this one, through any relation field on any board. |
| The board's own tasks | Board fields only: every task on the board. |

**Calculate** says what to work out: **Count**, **Sum**, **Average**, **Min**, **Max**, **Percent done**, **Earliest**, **Latest** or **State**.

**Of** says which value to aggregate: a custom field of a number, rating, currency, percent, duration, date or formula type, or one of the built-ins **Estimate**, **Time spent**, **Completed**, **Start date** and **Due date**.

**Tasks** narrows the set to **All tasks**, **Open tasks** or **Done tasks**.
Cancelled tasks never count as open, and they drop out of the Percent done denominator.

**Only where** narrows it further to the tasks whose select field holds one value, picked under **Is**.
A Companies database can count only the deals whose Stage is Won, for example.
The cell's tooltip says which filter it applies.

### State

**State** reports where the linked work stands rather than a number: the list of the least advanced matching task, shown as a status chip with the list's flow glyph and colour.
A Client record whose tasks sit in To do, In Progress and Done reads **To do**.
Cancelled tasks are left out unless every match is cancelled.
State needs linked tasks, so a board field over the board's own tasks cannot use it.

A rollup carries the kind of what it aggregates, not of the field it points at: a sum of money is money, a count of money rows is a plain number.
Tasks you cannot see are excluded, and the editor says how many were left out.

## Formulas

A formula reads this task's own fields by name in braces and produces one typed value.

```
{Quantity} * {Unit cost}
if({Quantity on hand} <= {Reorder point}, 1, 0)
days_until({Warranty end})
```

| | |
| --- | --- |
| Operators | `+` `-` `*` `/`, comparisons `=` `==` `!=` `<>` `<` `<=` `>` `>=`, and `and` / `or` / `not` |
| Functions | `round`, `abs`, `min`, `max`, `if`, `coalesce`, `days_until`, `days_since`, `days_between` |
| Built-ins | `{estimate}`, `{time_spent}`, `{predicted}`, `{start}`, `{end}`, `{entered}` |
| Readable field types | number, currency, percent, duration, rating, date, checkbox, rollup, formula |

`{predicted}` is the task's predicted estimate, worked out from similar finished tasks, and is empty when there is none.
See [Time tracking](https://docs.truetask.io/time/).

The result kind (number, currency, percent, duration, date or boolean) is worked out from the operands, so a column never flips between money and plain numbers row by row.
Nothing propagates: rounding an empty value gives an empty value, a comparison against an empty value is false, and dividing by zero gives an empty value rather than an error.
Dates add and subtract whole days.
A formula may read other formulas up to eight levels deep; deeper than that, or a cycle, shows as **Invalid**.
The editor previews the live value on a real task as you type.

## Where values show

| Surface | How |
| --- | --- |
| The task | The **Fields** list in the brief, subject to the layout and show rule, and a chip in the band once it has a value. |
| [List view](https://docs.truetask.io/boards/list) | A column you can sort, group and edit inline, including across a multi-selection. |
| [Filters](https://docs.truetask.io/boards/filters) | A row in the board's filter sheet, with the operators its type supports. |
| [All tasks](https://docs.truetask.io/tasks/all-tasks) | Workspace task fields filter, group, sort and show as table columns across boards. A view narrowed to some boards also offers those boards' own fields. Board fields filter as **Board fields**. |
| [Forms](https://docs.truetask.io/forms/builder) | Expose a field on a form and the submitter fills it in. |
| [Automations](https://docs.truetask.io/automations/) | The **Custom field changed** trigger and the **Set custom field** action, plus field [placeholders](https://docs.truetask.io/automations/placeholders) inside node text. |
| Export and the API | Values come along. See [Exporting](https://docs.truetask.io/import-export/exporting) and the [REST API](https://docs.truetask.io/integrations/api). |

## Related

- [Tasks](https://docs.truetask.io/tasks/)
- [List view](https://docs.truetask.io/boards/list)
- [Database boards](https://docs.truetask.io/boards/databases)
- [Automation actions](https://docs.truetask.io/automations/actions)
