This script synchronizes your Linear issues with a Dust datasource.This open-source script, available on GitHub atdust-tt/dust-labs/linear, automates the process of exporting all issues from Linear, along with related metadata such as comments, attachments, and history. It fetches full issue metadata, like so:
Issue Summary for ENG-123: Implement new authentication flowMetadata:Issue Details:ID: abc123Number: 123Identifier: ENG-123URL: https://linear.app/company/issue/ENG-123Team & Project:Team: Engineering (ENG)Project: Authentication OverhaulState: In Progress (Active)Dates & Times:Created: 2024-03-18T10:00:00.000ZUpdated: 2024-03-18T15:30:00.000ZStarted: 2024-03-18T11:00:00.000ZDue Date: 2024-03-25People:Creator: Jane Smith (jane@company.com)Assignee: John Doe (john@company.com)Subscribers: Alice Brown (alice@company.com), Bob Wilson (bob@company.com)Planning:Priority: 2 (High)Estimate: 5 pointsCycle: Sprint 45 (2024-03-18T00:00:00.000Z to 2024-03-29T23:59:59.999Z)Labels: security, authenticationDescription:Implement new OAuth2-based authentication flow with support for multiple providers.- Add OAuth2 client implementation- Support Google and GitHub providers- Implement token refresh logic- Add user session managementComments:Comment by Alice Brown (alice@company.com) - 2024-03-18T12:00:00.000ZShould we also consider adding Microsoft OAuth support?Reactions: : 2, : 1Comment by John Doe (john@company.com) - 2024-03-18T13:15:00.000ZGood suggestion. I'll create a follow-up ticket for that.Recent History:2024-03-18T11:00:00.000Z - John DoeChanged status from "Todo" to "In Progress"
The script then formats and uploads this data to Dust.With this data in Dust, you can build agents that analyze trends, response times, and response quality across your Linear issues. The script includes rate limiting, filtering, and error handling, and handles large volumes of Linear issues reliably.