Skip to main content

1. Overview

The Ana x Linear integration connects your Linear workspace to Ana, giving you natural language access to your team’s roadmap, issues, projects, and cycles data. Once configured, Ana can query issue statuses, track cycle progress, surface blockers, and analyze engineering throughput — all without leaving your workflow.
Connect Linear to Ana to query and analyze your team’s project and issue data using natural language.

2. Prerequisites

You’ll need:
  • A Linear account you want Ana to query
  • Owner or admin access to your Linear workspace if you are setting up an org-level integration
  • A TextQL account with permission to add API connectors

Which type of connection should I use?

API TokenOAuth (Org-level)OAuth (Per-member)
Best ForIndividual users, service accounts, or shared team access tied to a single user’s permissionsShared team access to a single Linear workspaceIndividual user access with personal permissions
ScopeAccess tied to the token owner’s permissionsFull org workspace access under one shared authEach user queries Linear as themselves
AuthenticationPersonal Access Token from Linear settingsOne-time OAuth flow by an adminEach member completes their own OAuth flow
Data VisibilityLimited to what the token owner can seeConsistent view across all Ana usersEach user sees only what they have access to in Linear
LimitationsToken must be rotated manually if compromisedRequires admin to re-auth if token expiresHigher setup overhead; each member must connect

3. Capabilities

Once configured, Ana can:
  • Query about open, in-progress, or blocked issues across any team or project in plain language.
  • Track how much work is completed, in flight, or unstarted within any active cycle.
  • Analyze how many issues a team is closing over time and identify velocity trends.
  • Get a snapshot of project milestones, priorities, and any at-risk items across your workspace.

4. Setup Instructions


Step 1: Generate your Linear credentials

Before you begin, choose your connection type:
  • Personal Access Token: best for individuals or shared team access tied to one person’s permissions.
  • OAuth (Org-level): an admin authorizes once; all Ana users share that workspace-level access.
  • OAuth (Per-member): each user authorizes individually and sees only what they have access to in Linear.
If you’re unsure, refer to Which type of connection should I use? Then follow the instructions below for your chosen type.
TextQL API Token page in Linear showing the API key, permissions, and team access
  1. Go to linear.app and sign in.
  2. Click your workspace name in the top-left corner.
  3. Go to Settings.
  4. In the left sidebar, navigate to Security & Access.
  5. Click API Keys (or Personal API Keys, depending on your workspace settings).
  6. Click Create new API key.
  7. Enter a name (e.g. TextQL or Ana Integration).
  8. Select the workspace/team access you want this key to have.
  9. Configure the API key permissions:
    • Permissions: Select Full access or Only selected permissions depending on your organization’s security requirements. If using selected permissions, grant the minimum access required for the data you want Ana to query.
    • Team Access: Select All teams you have access to or Only selected teams. Limiting access to specific teams will restrict the data Ana can query to those teams.
  10. Click Create.
  11. Copy the API key immediately and store it securely.

Step 2: Add Linear as an API connector in TextQL

Linear connector in the API Connectors panel
  1. Go to app.textql.com and sign in.
  2. In the bottom left sidebar, click Connectors > APIs and select Linear.
  3. In the configuration panel, fill in the fields depending on your connection type:
    • Personal Access Token (PAT)
      • Name (e.g. Linear Personal Access)
      • Authentication type: select API Token
      • Token: paste the PAT copied from Step 1
    • OAuth (Org-level or Per-member)
      • Name (e.g. Linear OAuth)
      • Authentication type: select OAuth (org-level) or OAuth (per-member)
      • Client ID and Client Secret: paste the values copied from Step 1
      • OAuth Authentication: click Authenticate — a popup will appear asking for permissions to access your Linear account. Click Allow.
  4. Click Save.

Step 3: Verify the connection

Once saved, confirm the connector is active:
  1. Go to app.textql.com.
  2. On the bottom left side bar click Connectors -> APIs and check that Linear appears in your list of active connectors.
  3. Open a new Ana chat and ask a simple query, such as: “List my most recent tasks.”
    • If Ana returns results, the connection is working. If you see an error, refer to Section 5: Troubleshooting.

5. Usage Examples

Once configured, you can ask Ana:
  • “What issues are currently blocked on the mobile team, and who owns them?”
  • “How many issues did we close last cycle compared to the one before?”
  • “Show me all high-priority bugs that haven’t been updated in more than 7 days.”
  • “Which projects are behind schedule this quarter?”
  • “Give me a breakdown of open issues by assignee for the backend team.”
  • “What percentage of this cycle’s scope is completed so far?“

6. Troubleshooting

SymptomLikely CauseFix
Could not find OAuth client with clientId (OAuth)Client ID or Client Secret is incorrect, missing, or the OAuth application has been reconfigured.Confirm the Client ID and Client Secret were pasted correctly in Connectors → APIs → Linear with no extra spaces. If authentication has expired or been revoked, re-run the OAuth authentication flow in TextQL and authorize the application again.
Authentication failed (OAuth org-level or per-member)Incorrect redirect URLIn your Linear integration settings, make sure https://app.textql.com/auth/api-oauth/callback is listed exactly as a redirect URL.
Authentication failed (API Token)Invalid, revoked, or incorrectly copied API keyGenerate a new API key in Linear and update the connector in TextQL.
Ana returns no resultsInsufficient permissions or team accessVerify the API key or OAuth connection has access to the teams and data you expect Ana to query.

7. Security Notes

  • Follow the principle of least privilege when creating API keys or OAuth applications. Grant only the permissions and team access required for Ana to query the data you need.
  • Personal Access Tokens remain valid until they are manually revoked. Store them securely and rotate them if you suspect they have been exposed.
  • OAuth access may require re-authentication if authorization is revoked, credentials are changed, or access expires.
  • Do not share API keys, client secrets, or OAuth credentials in email, chat, tickets, or other unsecured locations.
  • If you no longer need the integration, revoke the API key or OAuth application’s access in Linear and remove the connector from TextQL.
  • For more details on how Linear handles API authentication and permissions, refer to Linear’s official API documentation.

Need Help?

For further assistance, please contact support@textql.com.

Privacy Policy

For information about how we handle your data and protect your privacy, please review our Privacy Policy.