
Linear Has a Free API — Manage Issues and Projects From Your Terminal
Jira Alternative With a Better API Linear is a project management tool loved by startups. Free for teams up to 250 issues. Their GraphQL API is clean and well-documented. Setup import requests API_KEY = " lin_api_your_key " # Settings > API > Personal API Keys HEADERS = { " Authorization " : API_KEY , " Content-Type " : " application/json " } List Your Issues def my_issues (): query = """ { issues(filter: { assignee: { isMe: { eq: true } } }) { nodes { title state { name } priority createdAt } } } """ r = requests . post ( " https://api.linear.app/graphql " , headers = HEADERS , json = { " query " : query }) return r . json ()[ " data " ][ " issues " ][ " nodes " ] for issue in my_issues (): print ( f " [ { issue [ state ][ name ] } ] { issue [ title ] } " ) Create an Issue def create_issue ( title , team_id , description = "" , priority = 0 ): mutation = """ mutation($input: IssueCreateInput!) { issueCreate(input: $input) { success issue { id title url } } } """ variables = { " input
Continue reading on Dev.to Tutorial
Opens in a new tab




