> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Linear issues

> Mount Linear issues.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind).
Use `providerEndpoint` from `@bijectionhq/app-rest` to bind the collection,
and supply a scoped bearer token or the raw personal API key through sealed `Authorization` header auth.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const provider = providerEndpoint(
  "linear/issues.observations",
  "https://api.linear.app",
  "/graphql",
  auth,
  data,
);
```

Pass `provider` as `receivers.provider`, with the same label to the binder and as the app's `data`. Grant the app's `operator` role, then call
`source.initialize` with this profile.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "linear/issues.observations", limit: 25 } }
```

The feed posts a fixed read-only GraphQL issue query with Relay pagination. The issue ID keys each observation. An explicit trash flag removes a key, while archived issues remain observable. Hard-deleted or invisible issues do not retire prior rows. The next poll starts a new walk when the connection has no next page. Set `limit` from 1 to 50.

Up to 36 KiB per response. The bundled parser is required. Pages publish rows and their next
position together. Use [source health and controls](https://docs.bijection.com/integrations/native-rest.md#feed-contracts)
to review failures and recover the feed.

[Provider API reference](https://linear.app/developers/graphql)

## Write issues

Follow the [native write app guide](https://docs.bijection.com/integrations/native-rest.md#native-provider-writes). Bind `providerWriter("linear.issues.create-update-delete", { endpoint: "https://api.linear.app", auth }, data)` and pass it as `receivers.writers["linear.issues.create-update-delete"]`. Seal a Linear OAuth bearer or personal API token with issue write access. Create and update take an `IssueCreateInput` or `IssueUpdateInput` object as the JSON payload. Use the issue UUID for update or delete. Delete calls Linear’s archive mutation. Evidence is HTTP 200 with the mutation’s `success: true` and, for create and update, the issue ID. A GraphQL error leaves the command unresolved.

The writer records its evidence at the app's `data` label. Commands take up to 24 KiB of JSON and carry no read cursor.

[Provider write API](https://linear.app/developers/graphql)

## Teams, projects, cycles, workflow states, and comments

Bind `providerEndpoint(mode, "https://api.linear.app", "/graphql", auth, data)`
to `receivers.provider` and bind `data` to the same protected label.
Seal a credential with read access to the intended workspace and teams.
Use one mount per mode and initialize with
`{ profile: { mode: "provider", provider: mode, limit: 20 } }`.

| Mode | Observation key and fields |
| - | - |
| `linear.teams.observations` | Team ID, key and name |
| `linear.projects.observations` | Project ID and name |
| `linear.cycles.observations` | Cycle ID, number, date bounds and team ID |
| `linear.workflow-states.observations` | State ID, name, type, position and team ID |
| `linear.comments.observations` | Comment ID, body, timestamps and issue ID |

These fixed GraphQL queries follow the opaque Relay cursor through
1–50 records and 36 KiB per response. A terminal page restarts the sweep
on the next poll. The credential and Linear's default visibility determine
which rows are returned. Missing or deleted resources remain published.
A GraphQL error, including a partial response with errors, leaves the last
committed position intact. [Linear pagination](https://linear.app/developers/pagination)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.