Linear webhooks provide real-time notifications for issue tracking, project updates, and team collaboration events. Perfect for automating workflows, syncing with other tools, and building custom integrations.
function handleIssueUpdate(issue, updatedFrom) { if (updatedFrom?.state) { console.log(`Status changed from ${updatedFrom.state.name} to ${issue.state.name}`); notifyStatusChange(issue); } if (updatedFrom?.assignee) { console.log(`Assignee changed to ${issue.assignee?.name || 'Unassigned'}`); notifyAssignmentChange(issue); } if (updatedFrom?.priority !== undefined) { console.log(`Priority changed from ${updatedFrom.priority} to ${issue.priority}`); }}
# Linear API Key (for enriching webhook data)LINEAR_API_KEY=lin_api_xxxxxxxxxxxxx# Webhook Secret (from webhook configuration)LINEAR_WEBHOOK_SECRET=your_webhook_secret# Optional: Team ID for API operationsLINEAR_TEAM_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx