> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/project-management/linear.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Linear

Linear is an issue tracking tool for software teams. Create and archive issues and projects, and manage comments, documents, initiatives and customers.

![Linear logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-48abb4618726b0131b2f9ba48425e6eccd544475%2Flinear.png?alt=media)

|                    |                                                                                      |
| ------------------ | ------------------------------------------------------------------------------------ |
| **Category**       | [Project management](https://docs.fastn.ai/connectors/catalog/project-management.md) |
| **Website**        | [linear.app](https://linear.app)                                                     |
| **Authentication** | API key                                                                              |
| **Slug**           | `linear`                                                                             |
| **On fastn.ai**    | [Embed Linear in your product](https://fastn.ai/integrations/linear)                 |

## Setup

Your customers enter their API key for Linear when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Linear from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Linear**.
2. Select **Connect** on the Linear card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Linear's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Archive Issue</td><td><code>archiveIssue</code></td><td>Archive an issue by id. Required: id.</td></tr><tr><td>Archive Project</td><td><code>archiveProject</code></td><td>Archive a project by id. Required: id.</td></tr><tr><td>Create Attachment</td><td><code>createAttachment</code></td><td>Create an attachment (link) on an issue. Required: issueId, title, url. Optional: subtitle, iconUrl, commentBody, metadata (reconciled at verify).</td></tr><tr><td>Create Comment</td><td><code>createComment</code></td><td>Create a comment on an issue. Required: issueId, body.</td></tr><tr><td>Create Customer</td><td><code>createCustomer</code></td><td>Create a customer. Required: name. Optional: domains, externalIds, ownerId, revenue, size, logoUrl, slackChannelId (reconciled at verify). Plan-gated.</td></tr><tr><td>Create Customer Need</td><td><code>createCustomerNeed</code></td><td>Create a customer need. Required: body. Optional: customerId, customerExternalId, issueId, projectId, attachmentUrl, priority (reconciled at verify). Plan-gated.</td></tr><tr><td>Create Document</td><td><code>createDocument</code></td><td>Create a document. Required: title. Optional: content, projectId, initiativeId, issueId, icon, color (reconciled at verify). At least one association (projectId/initiativeId/issueId) is typically required by the API.</td></tr><tr><td>Create Favorite</td><td><code>createFavorite</code></td><td>Create a favorite. Provide exactly ONE target id (issueId, projectId, documentId, cycleId, customViewId, etc). Required here: issueId is templated; for other target types use updateFavorite or reconcile at verify.</td></tr><tr><td>Create Initiative</td><td><code>createInitiative</code></td><td>Create an initiative. Required: name. Optional: description, content, ownerId, color, icon, targetDate, status (reconciled at verify).</td></tr><tr><td>Create Issue</td><td><code>createIssue</code></td><td>Create an issue. Required: teamId, title. Optional: description, priority, assigneeId, stateId, labelIds, projectId, cycleId, estimate, dueDate, parentId - each is sent only when provided.</td></tr></tbody></table>

<details>

<summary>View 53 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Issue Label</td><td><code>createIssueLabel</code></td><td>Create an issue label. Required: name. Optional: teamId, color, description, parentId, isGroup (reconciled at verify).</td></tr><tr><td>Create Project</td><td><code>createProject</code></td><td>Create a project. Required: name, teamIds (array of team ids). Optional: description, content, leadId, targetDate, startDate, memberIds, color, icon, labelIds - documented, reconciled at verify.</td></tr><tr><td>Create Project Milestone</td><td><code>createProjectMilestone</code></td><td>Create a project milestone. Required: projectId, name. Optional: description, targetDate, sortOrder (reconciled at verify).</td></tr><tr><td>Create Reaction</td><td><code>createReaction</code></td><td>Create an emoji reaction. Required: emoji, and one target id (commentId templated here; issueId/projectUpdateId via reconcile at verify).</td></tr><tr><td>Create Webhook</td><td><code>createWebhook</code></td><td>Register a webhook. Required: url, resourceTypes (array of entity-type strings e.g. ["Issue","Comment"]), allPublicTeams (true for org-wide). Optional: label, secret, teamId. Called by the webhook config subscription code.</td></tr><tr><td>Delete Attachment</td><td><code>deleteAttachment</code></td><td>Delete an attachment by id. Required: id.</td></tr><tr><td>Delete Comment</td><td><code>deleteComment</code></td><td>Delete a comment by id. Required: id.</td></tr><tr><td>Delete Customer</td><td><code>deleteCustomer</code></td><td>Delete a customer by id. Required: id. Plan-gated.</td></tr><tr><td>Delete Customer Need</td><td><code>deleteCustomerNeed</code></td><td>Delete a customer need by id. Required: id. Plan-gated.</td></tr><tr><td>Delete Document</td><td><code>deleteDocument</code></td><td>Delete a document by id. Required: id.</td></tr><tr><td>Delete Favorite</td><td><code>deleteFavorite</code></td><td>Delete a favorite by id. Required: id.</td></tr><tr><td>Delete Initiative</td><td><code>deleteInitiative</code></td><td>Delete an initiative by id. Required: id.</td></tr><tr><td>Delete Issue</td><td><code>deleteIssue</code></td><td>Delete (trash) an issue by id. Required: id.</td></tr><tr><td>Delete Issue Label</td><td><code>deleteIssueLabel</code></td><td>Delete an issue label by id. Required: id.</td></tr><tr><td>Delete Project</td><td><code>deleteProject</code></td><td>Delete (trash) a project by id. Required: id.</td></tr><tr><td>Delete Project Milestone</td><td><code>deleteProjectMilestone</code></td><td>Delete a project milestone by id. Required: id.</td></tr><tr><td>Delete Reaction</td><td><code>deleteReaction</code></td><td>Delete a reaction by id. Required: id.</td></tr><tr><td>Delete Webhook</td><td><code>deleteWebhook</code></td><td>Delete a webhook by id. Required: id. Called by the webhook config unsubscription code.</td></tr><tr><td>Get Cycle</td><td><code>getCycle</code></td><td>Fetch a single cycle by id. Required: id.</td></tr><tr><td>Get Document</td><td><code>getDocument</code></td><td>Fetch a single document by id. Required: id.</td></tr><tr><td>Get Initiative</td><td><code>getInitiative</code></td><td>Fetch a single initiative by id. Required: id.</td></tr><tr><td>Get Issue</td><td><code>getIssue</code></td><td>Fetch a single issue by id (UUID or identifier like LIN-123). Required: id.</td></tr><tr><td>Get Organization</td><td><code>getOrganization</code></td><td>Fetch the workspace organization. No inputs.</td></tr><tr><td>Get Project</td><td><code>getProject</code></td><td>Fetch a single project by id. Required: id.</td></tr><tr><td>Get Team</td><td><code>getTeam</code></td><td>Fetch a single team by id. Required: id.</td></tr><tr><td>Get User</td><td><code>getUser</code></td><td>Fetch a single user by id. Required: id.</td></tr><tr><td>Get Viewer</td><td><code>getViewer</code></td><td>Fetch the current authenticated user (viewer) and their organization. No inputs. Good first validation call.</td></tr><tr><td>List Comments</td><td><code>listComments</code></td><td>List comments (paginated). Required: first (page size).</td></tr><tr><td>List Customer Needs</td><td><code>listCustomerNeeds</code></td><td>List customer needs (paginated). Required: first. Plan-gated.</td></tr><tr><td>List Customers</td><td><code>listCustomers</code></td><td>List customers (paginated). Required: first. Plan-gated - may return an errors envelope on plans without Customer Requests; classified at verify.</td></tr><tr><td>List Cycles</td><td><code>listCycles</code></td><td>List cycles (paginated). Required: first.</td></tr><tr><td>List Documents</td><td><code>listDocuments</code></td><td>List documents (paginated). Required: first.</td></tr><tr><td>List Favorites</td><td><code>listFavorites</code></td><td>List the viewer's favorites (paginated). Required: first.</td></tr><tr><td>List Initiatives</td><td><code>listInitiatives</code></td><td>List initiatives (paginated). Required: first.</td></tr><tr><td>List Issue Labels</td><td><code>listIssueLabels</code></td><td>List issue labels (paginated). Required: first.</td></tr><tr><td>List Issues</td><td><code>listIssues</code></td><td>List issues (paginated). Required: first (page size, default 50). Returns issue nodes plus pageInfo for cursor pagination.</td></tr><tr><td>List Issues (Paged)</td><td><code>listIssuesPaged</code></td><td>List issues newest-first with real cursor pagination. Pass first (page size) and optionally after (pageInfo.endCursor from the previous page). Returns issue nodes with state, team, assignee, creator, priority and timestamps, plus pageInfo { hasNextPage endCursor }.</td></tr><tr><td>List Project Milestones</td><td><code>listProjectMilestones</code></td><td>List project milestones (paginated). Required: first.</td></tr><tr><td>List Projects</td><td><code>listProjects</code></td><td>List projects (paginated). Required: first.</td></tr><tr><td>List Teams</td><td><code>listTeams</code></td><td>List teams (paginated). Required: first.</td></tr><tr><td>List Users</td><td><code>listUsers</code></td><td>List workspace users (paginated). Required: first.</td></tr><tr><td>List Webhooks</td><td><code>listWebhooks</code></td><td>List webhooks registered in the workspace (paginated). Required: first.</td></tr><tr><td>List Workflow States</td><td><code>listWorkflowStates</code></td><td>List workflow states (paginated). Required: first.</td></tr><tr><td>Run GraphQL Query</td><td><code>runGraphqlQuery</code></td><td>Run any Linear GraphQL query or mutation with variables. Use it for fields or operations the other actions do not cover. Returns Linear's raw response ({data, errors}).</td></tr><tr><td>Search Issues</td><td><code>searchIssues</code></td><td>Full-text search for issues by term. Required: term, first (page size).</td></tr><tr><td>Update Comment</td><td><code>updateComment</code></td><td>Update a comment body. Required: id, body.</td></tr><tr><td>Update Document</td><td><code>updateDocument</code></td><td>Update a document. Required: id, title. Optional: content, icon, color, projectId (reconciled at verify).</td></tr><tr><td>Update Initiative</td><td><code>updateInitiative</code></td><td>Update an initiative. Required: id, name. Optional: description, content, ownerId, color, targetDate, status (reconciled at verify).</td></tr><tr><td>Update Issue</td><td><code>updateIssue</code></td><td>Update an issue. Required: id. Optional: title, description, priority, assigneeId, stateId, projectId, cycleId, estimate, dueDate, addedLabelIds, labelIds - only the fields provided are sent; others are left unchanged.</td></tr><tr><td>Update Issue Label</td><td><code>updateIssueLabel</code></td><td>Update an issue label. Required: id, name. Optional: color, description, parentId (reconciled at verify).</td></tr><tr><td>Update Project</td><td><code>updateProject</code></td><td>Update a project. Required: id, name (templated). Other fields (description, content, state, leadId, targetDate, startDate, color, icon) documented optional, reconciled at verify.</td></tr><tr><td>Update Project Milestone</td><td><code>updateProjectMilestone</code></td><td>Update a project milestone. Required: id, name. Optional: description, targetDate, sortOrder (reconciled at verify).</td></tr><tr><td>Update Webhook</td><td><code>updateWebhook</code></td><td>Update a webhook. Required: id, enabled. Optional: url, resourceTypes, label, secret. Used for resubscription (re-enable a disabled webhook).</td></tr></tbody></table>

</details>

## Events

Start a workflow when one of these happens, with an [app event trigger](https://docs.fastn.ai/build/integrations/triggers.md).

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Attachment</td><td><code>Attachment</code></td><td>Attachment created, updated, or removed. The 'action' field distinguishes the operation; 'data' holds the attachment.</td></tr><tr><td>Comment</td><td><code>Comment</code></td><td>Comment created, updated, or removed. The 'action' field (create|update|remove) distinguishes the operation; 'data' holds the comment.</td></tr><tr><td>Customer</td><td><code>Customer</code></td><td>Customer created, updated, or removed (plan-gated). The 'action' field distinguishes the operation; 'data' holds the customer.</td></tr><tr><td>Customer Need</td><td><code>CustomerNeed</code></td><td>Customer need created, updated, or removed (plan-gated). The 'action' field distinguishes the operation; 'data' holds the customer need.</td></tr><tr><td>Cycle</td><td><code>Cycle</code></td><td>Cycle created or updated. The 'action' field distinguishes create|update; 'data' holds the cycle.</td></tr><tr><td>Document</td><td><code>Document</code></td><td>Document created, updated, or removed. The 'action' field distinguishes the operation; 'data' holds the document.</td></tr><tr><td>Initiative</td><td><code>Initiative</code></td><td>Initiative created, updated, or removed. The 'action' field distinguishes the operation; 'data' holds the initiative.</td></tr><tr><td>Issue</td><td><code>Issue</code></td><td>Issue created, updated, or removed. The payload's 'action' field (create|update|remove) distinguishes the operation; 'data' holds the issue.</td></tr><tr><td>Issue Label</td><td><code>IssueLabel</code></td><td>Issue label created, updated, or removed. The 'action' field distinguishes the operation; 'data' holds the label.</td></tr><tr><td>Project</td><td><code>Project</code></td><td>Project created, updated, or removed. The 'action' field distinguishes the operation; 'data' holds the project.</td></tr></tbody></table>

<details>

<summary>View 2 more events</summary>

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Project Update</td><td><code>ProjectUpdate</code></td><td>Project status update created or updated. The 'action' field distinguishes create|update; 'data' holds the project update.</td></tr><tr><td>Reaction</td><td><code>Reaction</code></td><td>Reaction created or removed. The 'action' field distinguishes create|remove; 'data' holds the reaction.</td></tr></tbody></table>

</details>


---

# 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://docs.fastn.ai/connectors/catalog/project-management/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.
