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
Automate ticket export with n8n and Google Sheets

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

Learn how to Build this Workflow with AI:

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.


Automate ticket export with n8n and Google Sheets

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.