Automate Linear Ticket Export to Google Sheets with n8n

Discover how this n8n workflow automates daily extraction of your Linear team’s tickets and updates them in Google Sheets. Save hours from manual ticket tracking and ensure your ticket data is always current with this seamless integration.
scheduleTrigger
graphql
googleSheets
+5
Workflow Identifier: 1835
NODES in Use: Schedule Trigger, GraphQL, If, Set, Split Out, Code, Google Sheets, Sticky Note

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow gets all tickets from a chosen Linear team every day at 9 AM. It fetches all pages of tickets to avoid missing any. Then it updates a Google Sheet by adding new tickets or changing existing ones based on ticket IDs. This saves time, stops manual copying mistakes, and keeps ticket data fresh for daily reports.

The workflow runs automatically in n8n without needing you to do anything each morning. You get your full ticket list in Google Sheets ready for stakeholders.


Who should use this workflow

This workflow fits project managers or team leads who use Linear and want quick daily ticket updates in Google Sheets. If manual copying takes hours or causes mistakes, this workflow makes reports easy and reliable.

Teams wanting auto daily syncs of tickets for review, reporting, or analysis also benefit. It works for any Linear team by changing the filter.


Tools and services used

  • n8n: The automation platform runs the workflow on schedule.
  • Linear API: Accesses tickets data using GraphQL queries and your team filter.
  • Google Sheets API: Updates your spreadsheet with ticket data using OAuth.

You must have API keys and credentials set up for Linear and Google Sheets inside n8n.


Inputs, processing, and output

Inputs

The workflow input is the scheduled timer that triggers it at 9 AM daily.

It uses the Linear API Key to query tickets and the team name to filter the data.

Processing Steps

  1. Trigger runs at 9 AM every day.
  2. GraphQL node queries the first 100 tickets filtered by team name.
  3. If node checks if more pages exist using pageInfo.hasNextPage.
  4. If more pages exist, Set node saves the endCursor for the next page.
  5. GraphQL node queries the next page using the endCursor, repeating until all tickets are fetched.
  6. Split Out node breaks the tickets array so each ticket is one item.
  7. Set node adds or updates ticket fields like labels as strings and default estimate if missing.
  8. Code node flattens nested ticket objects into simple key-value pairs for easier Google Sheets mapping.
  9. Google Sheets node appends new tickets and updates existing rows based on ticket IDs.

Output

Google Sheet updated daily with the full list of team’s tickets, keeping the data accurate and current.


Beginner step-by-step: How to use this workflow in n8n

Import the workflow

  1. Download the workflow file from this page using the Download button.
  2. Open the n8n editor and select “Import from File” to load the downloaded workflow.

Add credentials

  1. Enter your Linear API Key in the GraphQL nodes’ credential settings.
  2. Set up Google Sheets OAuth2 credentials in n8n and apply them to the Google Sheets node.

Update settings

  1. Change the Linear team name in the GraphQL queries variables to your own team.
  2. Update the Google Sheet document ID and sheet name in the Google Sheets node to match your target file and tab.

Test and activate

  1. Run the workflow manually once to check it fetches and writes tickets correctly.
  2. If no errors happen, activate the workflow to run daily at 9 AM.

If self hosting n8n, consider this helpful resource on self-host n8n to run the workflow on your own server.


Customization ideas

  • Change the team name in GraphQL nodes to get tickets for a different project.
  • Modify the default estimate value in the Set node to fit your workflow.
  • Add more ticket fields like assignee or comments in the GraphQL query and update mapping.
  • Update Google Sheet document ID or tab name in the Google Sheets node to use another spreadsheet.
  • Adjust the schedule trigger node to run at another time or frequency.

These changes help to match team needs better or include more data.


Common issues and fixes

  • Authentication fails on Linear GraphQL node: Check API Key correctness and update credentials if expired.
  • Google Sheets write errors: Reauthorize Google Sheets OAuth credentials and make sure sheet access exists.
  • Pagination misses tickets: Verify If node checks pageInfo.hasNextPage correctly and Set node extracts endCursor using the right path.

Summary of results

✓ Saves several hours per week by automating ticket exports.
✓ Prevents errors from manual copying.
✓ Keeps Google Sheets ticket report accurate and up-to-date daily.
✓ Allows team-specific filtering for ticket selection.
✓ Makes reporting seamless and reliable.


Frequently Asked Questions

The workflow uses pagination by checking if there is a next page with pageInfo.hasNextPage, then it fetches tickets in batches using the endCursor until all tickets are retrieved.
The workflow works for one Linear team at a time using the team name filter. To export multiple teams, duplicate or modify the workflow with different filters.
Reauthorize Google Sheets OAuth credentials in n8n, ensure the correct Google Sheet ID and sheet name are used, and confirm the user has permission to edit the sheet.
Modify the GraphQL query to include more fields, and update the Set or Code nodes for mapping those fields before writing to Google Sheets.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free