---
title: Maintain a Linear tracker record
lastModified: '2026-12-02T07:04:07.000Z'
description: loom tracker-feed configure --provider linear copies one Linear team's issues and comments into the same team-owned ClickHouse record the GitHub feed maintains…
---

`loom tracker-feed configure --provider linear` copies one Linear team's issues and
comments into the same team-owned ClickHouse record the [GitHub feed](/docs/features/tracker/github-feed)
maintains. Loom reads them through the record's `github_issues` view as a
[read-only tracker source](/docs/features/tracker/record-contract). The team owns the copied content,
backups and erasure. The job makes no model or embedding calls.

## Prepare the record

Prepare and initialize the record as for the
[GitHub feed](/docs/features/tracker/github-feed#prepare-the-record). A schema version 1 record holds only
GitHub repositories; running the same `init` command again upgrades it: `init` creates
the `feed_providers` table and then marks the record as schema version 2. A CLI build
that reads only version 1 refuses an upgraded record, so upgrade every scheduled job
before rerunning `init`.

Every Linear row is private. Name the team only in
[restricted namespaces](/docs/features/tracker/record-contract#public-and-private) of the registered source;
`configure` refuses a team that a standard namespace lists.

## Name the team

A Linear team is a repository named `<workspace>/<TEAM>`: the workspace's URL key and
the team key, such as `acme/ENG`. Items keep the identifier `acme/ENG#123`, so
namespace allowlists, the tracker's repository filter and contract UUIDs work as for
GitHub repositories. Use the team key as Linear shows it.

A renamed team key or workspace URL key fails the visibility check and hides the team's
rows, as a renamed GitHub repository does. Configure the new name as a separate
repository.

## Configure and schedule a team

Create a Linear API key with read-only access, restricted to the teams being copied.
`--read-only-token` is the operator's attestation that the key cannot write; a
successful read cannot prove that. Supply the key as `LOOM_TRACKER_FEED_LINEAR_API_KEY`
through the scheduler's secret facility, or name another variable with `--token-env`.

```bash
loom tracker-feed configure --org acme --source tracker --repo acme/ENG \
  --provider linear --writer-user feed_writer --read-only-token --max-pages 5
loom tracker-feed sync --org acme --source tracker --repo acme/ENG \
  --writer-user feed_writer
```

Configuration seals the key in the record under its own secret purpose and records the
repository's provider. A repository keeps its first provider: configuring it again with
another provider is refused before any provider request. `sync` reads the provider from
the record and takes no provider flag.

Schedule `sync` as for the GitHub feed. Each turn has two streams, issues and comments,
each reading at most `--max-pages` pages of 50 rows newest first, paced half a second
apart, within the same 120-second turn limit and response size bounds.

## What is copied

| Contract column       | From Linear                                                                                             |
| --------------------- | ------------------------------------------------------------------------------------------------------- |
| `title`, `body`       | title and description, cut at 1,024 and 65,536 characters                                               |
| `author`, `assignees` | the creator's and assignee's display names, never email addresses                                       |
| `labels`              | up to 100 label names                                                                                   |
| `severity_level`      | priority 1 to 4 as `critical`, `major`, `medium`, `low`; no priority as `''`                            |
| `closed_at`           | the completion or cancellation time; the update time if a closed issue lacks it                         |
| `state_reason`        | `completed`, `not_planned` for canceled, `duplicate` for a duplicate, `''` while open                   |
| `url`                 | built as `https://linear.app/<workspace in lower case>/issue/<TEAM>-<number>` from the configured names |

Other columns keep the contract's defaults, and nothing is written to `github_prs`.
Comments on the team's issues, replies included, join the issue's searchable body as
GitHub comments do. A trashed issue, a comment on one and a comment archived on its own
are copied without their text (see below).

## Visibility and erasure

Every stream checks that the workspace URL key and exactly one unarchived team match the
configured name before copying. The check sends the team key as the source's allowlist
spells it. A failed check hides the team's rows, and they expire 15 minutes after the
last successful check if scheduling stops. Each issue and comment row must name the
configured team; a row that names another team, or none, refuses the turn and hides the
team.

The feed reads only what the shared API key can see. Per-user connected accounts are
not used: a connected account's access is bound to one person's knowledge source and
its refresh lives in the deployment's account store, and copying every visible issue
into a team database is a different consent from searching one person's documents.

A scan that sees a trashed issue, or a comment archived on its own (which is how Linear
may keep a deleted one), rewrites its copy without its title, body or comment text. A
comment archived with its issue keeps its text. Scans do not report a hard deletion or a
move to another team, so those copies stay until the team erases them: stop every
scheduled writer, erase the affected raw rows, comments, repository configuration and its
`feed_providers` row, and remove the team from the allowlist before restarting. Dropping
a Loom namespace does not erase the team's record.

## Limits

- An issue moved to another team leaves its copy under the old team until erased.
- A comment copied without its text still takes one of the item's 64 comment places in
  the searchable body, as an empty line.
- A turn rewrites at most 10,000 stored comments of trashed issues; with more left, the
  next turn repeats the same scan and goes on with the rest.
- Whether a comment counts as deleted rests on its archive stamp against its issue's: one
  archived after its issue was is kept, and one Linear stamps just before the issue in
  the same archive loses its text.
- A comment is read when its own `updatedAt` enters the window. An issue moved into the
  team brings comments that are older than the window, and those are read only once
  edited; an issue restored from the trash gets back only comments edited afterwards.
- Linear identifiers in commit messages are not resolved to items.
- Link a Linear namespace to a code repository after its primary tracker
  ([linking a tracker](/docs/features/tracker/overview#linking-a-tracker-to-a-repository)): Linear issue
  numbers are not the repository's pull request numbers.

See the [feed architecture](/docs/architecture/github-feed#providers) for windows,
ordering and the provider marker.
