# Links between items · how they work

Items can link to Areas, People, Projects and Milestones. Change only the links the person names. A Task or Habit carries its own Milestone link.

Checked 2026-12-04 · https://xale.app/docs/ai/links-between-items-how-they-work

## Areas, People and Projects

| Field | On |
| --- | --- |
| `areaIds` | Almost everything |
| `linkedPersonIds` | Notes, Lists, Meetings, Captures, Mindmaps, Milestones |
| `linkedProjectIds` | Tasks, Habits, Memories, Mindmaps, Milestones |
| `linkedMilestoneIds` | Tasks, Habits, Notes, Lists and Meetings in connector output |
| `accountableIds` (Deliver to), `workerIds` (Assigned to) | Tasks |
| `workerIds` (who does it) | Habits |

Change them with `xale_change_links`, for `kind` `note`, `list`, `meeting`, `capture`, `mindmap`, `task`, `habit` or `milestone`:

```json
{ "kind": "task", "id": "tsk_8Kq2", "people": { "add": ["per_mum"] }, "projects": { "add": ["prj_kitchen"] }, "milestones": { "add": ["mil_move"] }, "areas": { "remove": ["area_work"] } }
```

Each of `areas`, `people`, `projects`, `milestones` and `assignedTo` (Tasks only) takes `add` and `remove` lists. Links you don't name are kept, so never send the whole list. The result says what was added, removed and is now linked.

## Link something to a Milestone

Use `milestones: { add: [...] }` or `milestones: { remove: [...] }` on a Task, Habit, Note or List with `xale_change_links`. Find the IDs with `xale_read_schedule` or `xale_read_today`. Link a Meeting as part of `xale_save_meeting`. New Tasks and Habits can take a `milestones` array when you create them. Adding a Milestone link needs Pro. Removing a stored link is available in the app after Pro ends.

A Milestone in a kept-away Area hides its linked Tasks and Habits from connected AI. For a Note or List that names it, the hidden Milestone ID is dropped.

## The "why" link

An Intention can point at the thinking behind it:

| Item | Fields | Set with |
| --- | --- | --- |
| Task | `linkedNoteId`, `linkedMapId`, `linkedNodeId` (one Mindmap node) | `xale_update_task` |
| Habit | `linkedNoteId`, `linkedMapId` | `xale_update_habit` |
| Project | `linkedNoteId`, `linkedMapId` | `xale_update_project` |
| Milestone | `linkedNoteId`, `linkedMapId`, `linkedNodeId`. Use `linkedTaskId` only to manage an older single Task pointer. | `xale_update_milestone` |

Send `null` to clear one. Linking Tasks and Habits to the Note or Mindmap behind them is one of the nudges the person chose.

## Links on Memories

A Note, List or Meeting carries `linkedMemoryIds`, `linkedTaskIds` and `linkedMilestoneIds`. A Meeting saved with `milestoneId` is linked to that Milestone, and `xale_read_milestone` lists the Notes, Lists and Meetings that name it.

## Mindmap nodes and Tasks

A Mindmap node can carry a `taskId` and a web `link`. Ticking a node linked to a Task with `xale_tick_mindmap_node` completes or reopens that Task.

## Rules

- Project links need Pro, which every connection has.
- A link to an item the person keeps away from connected AI is answered as if the item didn't exist.
- In reads, hidden ids are dropped from `…Ids` lists, and an item that points at a hidden item through a single `…Id` is left out.

## Related

- For people: [How do I link a person to a task or note in Xale?](https://xale.app/help/link-people-to-tasks-notes)
- For people: [Can I link notes together in Xale?](https://xale.app/help/links-between-notes-connect-ideas)
- For people: [How do I link notes to a project in Xale?](https://xale.app/help/project-notes-and-mindmaps)
- Tools: [xale_change_links](https://xale.app/docs/ai/tools/xale_change_links)
- Tools: [xale_update_task](https://xale.app/docs/ai/tools/xale_update_task)
- Tools: [xale_update_habit](https://xale.app/docs/ai/tools/xale_update_habit)
- Tools: [xale_update_project](https://xale.app/docs/ai/tools/xale_update_project)
- Tools: [xale_update_milestone](https://xale.app/docs/ai/tools/xale_update_milestone)
- Read next: [Linking people · always offer](https://xale.app/docs/ai/linking-people-always-offer)
- Read next: [Link to the note behind · recipe](https://xale.app/docs/ai/link-to-the-note-behind-recipe)
