SplitInBatches Automate

SplitInBatches Automate streamlines the integration of Notion and Linear by automatically importing unchecked tasks from Notion, creating corresponding issues in Linear, and linking them back to Notion. This workflow enhances productivity by ensuring that tasks are efficiently tracked and managed across both platforms, reducing manual effort and minimizing oversight.

7/8/2025
24 nodes
Complex
webhookcomplexsplitinbatchesgraphqlnotionaggregatelinearlangchainsticky notefilterformtriggerrespondtowebhookadvancedlogicconditionalapiintegration
Categories:
Communication & MessagingComplex WorkflowWebhook Triggered
Integrations:
SplitInBatchesGraphqlNotionAggregateLinearLangChainSticky NoteFilterFormTriggerRespondToWebhook

Target Audience

This workflow is designed for project managers, software developers, and teams using Notion and Linear for task management. It is particularly beneficial for those who need to automate the creation of Linear issues from Notion to streamline their workflow and enhance productivity.

Problem Solved

This workflow addresses the challenge of manually transferring tasks from Notion to Linear. By automating this process, it saves time, reduces errors, and ensures that all tasks are accurately documented and assigned in Linear, improving team collaboration and project tracking.

Workflow Steps

  • Trigger: The workflow starts when a user submits a form with a Notion page URL and the name of a Linear team.
    2. Fetch Linear Team Details: It retrieves the details of the specified Linear team to ensure the team exists. If the team is not found, an error message is returned.
    3. Get Issues from Notion: The workflow fetches all unchecked to_do blocks from the provided Notion page. If it fails to fetch the content, an error response is sent.
    4. Loop Over Items: For each unchecked to_do block, the workflow processes the item to extract the title and assignee.
    5. Set Assignee and Title: It determines the title and potential assignee based on the content of the to_do block.
    6. Shorten Title: If the title exceeds 150 characters, it is shortened to improve clarity.
    7. Prepare Issue Data: The workflow aggregates the contents and prepares the issue data for Linear, including a description and title.
    8. Create Linear Issue: A new issue is created in Linear with the prepared data.
    9. Get Issue URL: It retrieves the URL of the created Linear issue.
    10. Add Link to Notion Block: Finally, it updates the original Notion block to include a link to the newly created Linear issue, ensuring traceability and easy access.
  • Customization Guide

    Users can customize this workflow by modifying the form fields in the n8n Form Trigger to include additional inputs or change the required fields. They can also adjust the GraphQL queries to fetch different data from Linear or Notion based on their specific needs. Additionally, users can tailor the logic in the Set Assignee and Title node to fit their team's naming conventions or adjust the conditions in the Team Missing? node to handle different scenarios. For further customization, users can add or remove nodes to fit their unique workflow requirements.