Change your app safely
Section titled “Change your app safely”Step 12 of 12. Apps change after people start using them. This step teaches the one rule that keeps changes safe, then makes three realistic changes to Team Tasks:
- Add a required Priority to every task — a breaking change, and how to repair existing tasks afterwards.
- Let a task have sub-tasks, shown as a tree and as a Subtasks tab.
- Add a counter that shows each person how many tasks are waiting.
The rule: safe and breaking changes
Section titled “The rule: safe and breaking changes”Every task remembers the version of the entity it was saved with. Most changes leave existing tasks alone. A breaking change — one existing tasks may not satisfy — creates a new version of the entity, and tasks saved before it become Obsolete until someone upgrades them.
| Safe | Breaking |
|---|---|
| Adding an optional field | Adding a required field, or making a field required |
| Renaming a field, changing labels and layout | Changing a field’s type |
| Deleting a field | Turning a field’s repeatable or multiple option on or off |
| Changing the workflow steps |
When you save a breaking change on an entity that already has records, the Confirm Structure Changes dialog lists each affected field and why, so you can still back out. The full list is in Editing an entity.
1. Add a required Priority
Section titled “1. Add a required Priority”- Open the Tasks designer (Edit Entity) and the Structure tab.
- Drag a Category field after Status, name it Priority, and add the options Low, Normal and High. Tick Required and set Default Value to Normal.
- Select Save. The Confirm Structure Changes dialog lists Priority as an added required field. Select Save.
New tasks get Priority Normal unless someone picks another. The tasks that already existed are now Obsolete: they have no priority yet. Upgrade them:
- On the entity’s Tasks tab, filter the list to Obsolete entries.
- Select all the listed tasks, then Upgrade (Entries N) from the selection menu.
- Under Required changes, set Priority to Default — every task gets Normal.
- Select Upgrade. The tasks are current again.
To upgrade a single task instead, open it and select Upgrade Entry.
2. Add sub-tasks
Section titled “2. Add sub-tasks”Add a Parent Task field
Section titled “Add a Parent Task field”- In the Tasks designer, drag a Reference field after Description and name it Parent Task.
- In its data source settings, choose the entity Tasks itself, so a task can point at another task.
- Leave Required off — top-level tasks have no parent. Because the field is optional, this change is safe and no task becomes obsolete.
- Select Save.
Show tasks as a tree
Section titled “Show tasks as a tree”- Open Manage Tasks for editing (the entity’s Views tab).
- Add Parent Task to the Table view fields.
- Under Displays, turn on Tree view and set:
- Tree reference — Parent Task
- Main title — Title
- Sub title — Description
- Tick Default next to Tree view if managers should see the tree first.
- Select Save.
Add a Subtasks tab
Section titled “Add a Subtasks tab”A relation shows the link from the other side: on a parent task, a Subtasks tab lists every task whose Parent Task points at it.
- Open the Tasks entity and select its Relations tab.
- Select Add Relation. Enter the name Subtasks and pick an icon.
- In Relation Type, choose Incoming, then choose the entity Tasks and the field Parent Task.
- Save.
- Open Manage Tasks for editing, turn on Relations, choose Subtasks, and select the view to show them in (Manage Tasks). Select Save.
Check: create a task, then a second task with Parent Task set to the first. Open the first task: a Subtasks tab lists the second. The tree view shows the second task under the first.
More about reference fields and relations is in Link entities.
3. Add a counter
Section titled “3. Add a counter”A counter is a badge in the top bar — 3 tasks — that opens the matching records when selected.
- Open My Tasks for editing and turn on Counter view under Displays, with Main title Title, Sub title Description and Date Due Date. A counter can only count a view that has this display. Select Save.
- Open Administration › Applications › Counters and select New Counter.
- Enter the Name My tasks and pick an icon.
- In View, choose My Tasks. Because My Tasks already shows only your open tasks, leave Counting Criteria empty.
- Save. Each employee now sees their own count of open tasks in the top bar.
See Counters and record numbers.
You have built your first app
Section titled “You have built your first app”You now know the whole cycle: model the data, filter it, show it, automate it, report on it, put it on a page, and change it without breaking it. Where to go next:
- Add an approval step: Publish a service with an approval workflow.
- Build a larger system: Customer support tutorial.
- Move the app to another environment: Packaging.
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27