The Linear integration enables seamless issue tracking by allowing you to create, link, and manage Linear issues directly from customer conversations in Chatwoot. Turn customer feedback into actionable development tasks without switching tools.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Merkurcode/nauto-console/llms.txt
Use this file to discover all available pages before exploring further.
Features
- Create Issues: Convert conversations into Linear issues
- Link Issues: Connect existing Linear issues to conversations
- Search Issues: Find and link relevant issues quickly
- Team Sync: Access teams, projects, and workflow states
- Automated Logging: Activity messages for all Linear actions
- Issue Management: View linked issues and their status
- OAuth Authentication: Secure connection to Linear workspace
Prerequisites
- Admin access to your Chatwoot account
- Linear workspace with admin access
- Feature flag enabled:
linear_integration - Linear OAuth credentials configured:
LINEAR_CLIENT_IDLINEAR_CLIENT_SECRET
Setup Instructions
Step 1: Configure Environment Variables
Ensure your Chatwoot instance has Linear credentials configured:Step 2: Enable Feature Flag
The Linear integration requires the feature flag:Step 3: Connect Linear
- Navigate to Settings > Integrations in Chatwoot
- Find Linear in the integrations list
- Click Connect
- You’ll be redirected to Linear’s authorization page
- Review permissions and click Authorize
- You’ll be redirected back to Chatwoot
Step 4: Verify Integration
- Open a conversation
- Look for the Linear integration panel
- Try creating a test issue
- Verify the issue appears in Linear
OAuth Scopes
The integration requests the following Linear permissions:read: Read workspace datawrite: Create and modify issues
- Access teams, projects, and workflow states
- Create new issues
- Link and unlink issues
- Search existing issues
- Read issue details
Using the Integration
Creating Issues
To create a Linear issue from a conversation:- Open the conversation
- Click the Linear integration icon
- Fill in the issue details:
- Title: Brief issue description
- Description: Detailed information (supports markdown)
- Team: Select the Linear team
- Project: Choose a project (optional)
- Assignee: Assign to a team member (optional)
- Priority: Set issue priority (optional)
- State: Select workflow state (optional)
- Labels: Add labels (optional)
- Click Create Issue
Linking Existing Issues
To link an existing Linear issue:- Open the conversation
- Click Link Issue in the Linear panel
- Search for the issue by:
- Issue identifier (e.g., “ENG-123”)
- Title keywords
- Select the issue from results
- Click Link
Viewing Linked Issues
Linked issues are displayed in the conversation sidebar:- Issue identifier and title
- Current status
- Link to view in Linear
- Option to unlink
Unlinking Issues
To remove the link between a conversation and issue:- Find the linked issue in the conversation
- Click Unlink
- Confirm the action
Activity Logging
All Linear actions generate activity messages in the conversation:- Issue Created: “Created Linear issue [ENG-123]”
- Issue Linked: “Linked Linear issue [ENG-123]”
- Issue Unlinked: “Unlinked Linear issue [ENG-123]”
API Integration
Get Teams
Get Team Entities
Fetch projects, users, states, and labels for a team:Create Issue
Link Issue
Unlink Issue
Search Issues
Get Linked Issues
Delete Integration
Implementation Details
The Linear integration uses:- Processor Service:
Integrations::Linear::ProcessorService - Linear Client: Custom GraphQL client for Linear API
- Hook Type: Account-level integration
- Token Storage: Encrypted access token in integration hook
Hook Configuration
Priority Values
Linear priority levels:0: No priority1: Urgent2: High3: Medium4: Low
Conversation Link Format
When linking issues, Chatwoot creates a URL:Troubleshooting
Integration Not Available
Issue: Linear integration doesn’t appear. Solution:- Verify
LINEAR_CLIENT_IDenvironment variable is set - Enable
linear_integrationfeature flag - Check admin permissions
OAuth Authorization Failed
Issue: Error during OAuth redirect. Solution:- Verify redirect URI in Linear OAuth app:
- Check
FRONTEND_URLenvironment variable - Ensure Linear app is properly configured
Cannot Create Issues
Issue: Error when creating Linear issues. Solution:- Verify access token is valid
- Check that team ID is correct
- Ensure user has write permissions in Linear
- Verify all required fields are provided
Team Entities Not Loading
Issue: Projects, users, or states not appearing. Solution:- Verify team ID is correct
- Check Linear workspace permissions
- Ensure the team has projects and workflow states configured
- Try refreshing the integration connection
Search Returns No Results
Issue: Issue search doesn’t find existing issues. Solution:- Verify search parameter is provided (
qparameter required) - Check that issues exist in Linear workspace
- Ensure search term matches issue titles or identifiers
- Try more specific search terms
Token Revocation Failed
Issue: Error when removing integration. Solution:- The integration will still be removed from Chatwoot
- Manually revoke access in Linear settings
- Check Linear API status if persistent
Activity Messages
The integration usesLinear::ActivityMessageService to create conversation messages:
State Management
Linear uses workflow states to track issue progress:- Triage: New issues awaiting review
- Backlog: Planned work
- Todo: Ready to start
- In Progress: Active work
- In Review: Awaiting review
- Done: Completed
- Canceled: Not proceeding
Security Considerations
- Encrypted Tokens: Linear access tokens are encrypted
- OAuth 2.0: Secure authorization flow
- Token Revocation: Tokens are revoked when integration is removed
- Admin Only: Only administrators can configure the integration
- Scoped Access: Minimum required permissions
Best Practices
- Consistent Naming: Use clear, descriptive issue titles
- Proper Labeling: Apply consistent labels for filtering
- Set Priorities: Help teams prioritize customer-reported issues
- Link Context: Include relevant conversation details in issue descriptions
- Regular Review: Periodically review linked issues for status updates
Limitations
- Single Workspace: One Linear workspace per Chatwoot account
- No Bidirectional Sync: Changes in Linear don’t update Chatwoot
- Manual Linking: Must manually link existing issues
- No Bulk Operations: One issue at a time
Removing the Integration
To remove the Linear integration:- Navigate to Settings > Integrations
- Find Linear integration
- Click Delete
- Confirm removal
- Revoke the Linear access token
- Remove integration configuration
- Existing linked issues remain in Linear
- Activity messages in conversations are preserved
Next Steps
- Configure Linear teams and projects
- Train support team on creating issues
- Establish guidelines for when to create vs. link issues
- Set up Linear automation rules for Chatwoot-created issues
- Monitor issue resolution times from customer conversations

