> For the complete documentation index, see [llms.txt](https://help.swarmia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.swarmia.com/settings/integrations/issue-trackers/linear.md).

# Linear

Learn how to connect your Linear organization to Swarmia.

With the Linear integration, you'll be able to see your commits and pull requests in the context of your Linear issues and projects.

* Connecting the Linear workspace needs to be done only once
* You can assign the Linear teams (and their issues) to teams on Swarmia
* We automatically map the issue and project statuses on Swarmia based on the Linear statuses

## Connect your Linear account

We ask you to connect Linear when connecting your GitHub organization to Swarmia. You can also do this later from [Settings → Integrations → Linear](https://app.swarmia.com/settings/linear).

The integration is simple: we ask you to authenticate your Linear workspace, and proceed to synchronize the data and create webhooks to keep everything up to date.

{% hint style="info" %}
**Recommended: connect with a service account**

The Linear account you sign in with owns the connection. If you connect with a personal account and that person later leaves and their Linear account is deactivated, Swarmia can no longer fetch the data and syncing stops. Your org admins get an email to reconnect, but you'll need another Linear account to do it.

To avoid this, we recommend signing in to a dedicated Linear member account (for example, `integrations@yourcompany.com`) before you connect, so the connection doesn't depend on any one person. That account needs:

* Linear admin rights, so Swarmia can create webhooks that keep your data up to date
* access to every team whose issues you want to sync

You don't need to generate an API key. Once you're signed in as the service account, connect Linear from Swarmia as usual. Just check you're in the right Linear workspace and signed in as the right account.
{% endhint %}

{% hint style="success" %}
Once the Linear integration is installed, proceed to [Linear configuration](/settings/integrations/issue-trackers/linear/linear-configuration.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.swarmia.com/settings/integrations/issue-trackers/linear.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
