{
  "name": "Create Linear tickets from Notion content",
  "nodes": [
    {
      "id": "7d11aa76-c7bf-4aa3-9f94-fb2231f5055b",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1460,
        2080
      ]
    },
    {
      "id": "bea6febe-077f-4b90-887c-9c82954ef5d9",
      "name": "Fetch Linear team details",
      "type": "n8n-nodes-base.graphql",
      "position": [
        -1220,
        1760
      ]
    },
    {
      "id": "27a2111b-716b-4150-af92-ab90d7e83642",
      "name": "Get issue contents",
      "type": "n8n-nodes-base.notion",
      "position": [
        -1220,
        2340
      ]
    },
    {
      "id": "96bde9b1-b84e-445a-b90c-6dd4031076aa",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -560,
        2340
      ]
    },
    {
      "id": "45c63a2d-d457-4882-ac99-4b8e4a63ae43",
      "name": "Prepare issue data",
      "type": "n8n-nodes-base.set",
      "position": [
        -1220,
        2620
      ]
    },
    {
      "id": "ce619c7d-8363-48ec-86c8-a1f16097eb3e",
      "name": "Create linear issue",
      "type": "n8n-nodes-base.linear",
      "position": [
        -1000,
        2620
      ]
    },
    {
      "id": "cc365fa1-a2cc-430c-8cb4-5d708b7a66b9",
      "name": "Set assignee and title",
      "type": "n8n-nodes-base.code",
      "position": [
        -1220,
        2080
      ]
    },
    {
      "id": "15d9c526-95f3-4209-9a9f-a0ba4c09a67e",
      "name": "Team missing?",
      "type": "n8n-nodes-base.if",
      "position": [
        -1000,
        1760
      ]
    },
    {
      "id": "491a1176-18a7-442a-8f64-a8c946ac25dc",
      "name": "Set page URL",
      "type": "n8n-nodes-base.set",
      "position": [
        -1000,
        2340
      ]
    },
    {
      "id": "bd107990-b009-4b81-8fee-a80c9ab09b4c",
      "name": "Set team ID",
      "type": "n8n-nodes-base.set",
      "position": [
        -740,
        1760
      ]
    },
    {
      "id": "010105b6-38a2-4859-9e5d-b9624addeacc",
      "name": "Add link to Notion block",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -560,
        2620
      ]
    },
    {
      "id": "bb88f7df-deef-4c9d-b8af-3e59bf0e0b7d",
      "name": "Get issue URL",
      "type": "n8n-nodes-base.graphql",
      "position": [
        -780,
        2620
      ]
    },
    {
      "id": "00736596-08ee-4ff6-b907-bd454dd406d9",
      "name": "Shorten title",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -1000,
        2080
      ]
    },
    {
      "id": "729928a2-8a5e-4b25-82be-ba1916b9953f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1260,
        2020
      ],
      "parameters": {
        "width": 877.8549621677266,
        "height": 214.7985362687051,
        "content": "### Figure out issue assignee and title (shortening if necessary)"
      }
    },
    {
      "id": "86d3b72f-f235-4b37-877f-c8ab1f39ba30",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1260,
        2280
      ],
      "parameters": {
        "width": 877.8549621677266,
        "height": 216.9904777194533,
        "content": "### Compose issue description"
      }
    },
    {
      "id": "01c06352-76fa-4d63-b37b-2a0239d81302",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1260,
        2560
      ],
      "parameters": {
        "width": 877.8549621677266,
        "height": 216.9904777194533,
        "content": "### Create issue and add link to it in Notion"
      }
    },
    {
      "id": "1f152f08-0c5a-4806-bd85-7e9a5e386fe4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1260,
        1500
      ],
      "parameters": {
        "width": 1164.99929221574,
        "height": 442.760447146518,
        "content": "### Get the issues to create from Notion (and load Linear team details)"
      }
    },
    {
      "id": "839d1815-419d-4acb-8668-94f1cbe45f1f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1780,
        1700
      ],
      "parameters": {
        "width": null,
        "height": 278.9250421966361,
        "content": "# Try me out\n1. In the form trigger node, enter the names of your Linear team(s) to display on the form \n2. Make sure your Notion page is formatted according to the [spec](https://www.notion.so/n8n/Te"
      }
    },
    {
      "id": "f9bc6e67-a9f0-4c9b-a9b3-fdea1fd9de3e",
      "name": "Unimported, unchecked to_do blocks only",
      "type": "n8n-nodes-base.filter",
      "position": [
        -220,
        1760
      ]
    },
    {
      "id": "186a4272-4550-441e-9ef2-66de2dac5b8a",
      "name": "n8n Form Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1460,
        1760
      ]
    },
    {
      "id": "0fed5dbe-54e9-4bc3-8ab3-6175347ecce7",
      "name": "Get issues",
      "type": "n8n-nodes-base.notion",
      "position": [
        -500,
        1760
      ]
    },
    {
      "id": "7cc756ad-55f3-4596-989a-df90d4c829c7",
      "name": "Convert contents to Markdown",
      "type": "n8n-nodes-base.code",
      "position": [
        -780,
        2340
      ]
    },
    {
      "id": "2bbd43a2-aebe-4ee5-8682-d76791214168",
      "name": "Respond with error",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -220,
        1580
      ]
    },
    {
      "id": "c39912c4-d33f-4d79-9d5c-e71bd0f2517d",
      "name": "Respond with error1",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -740,
        1580
      ]
    }
  ],
  "connections": {
    "Aggregate": {
      "main": [
        [
          {
            "node": "Prepare issue data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get issues": {
      "main": [
        [
          {
            "node": "Unimported, unchecked to_do blocks only",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Respond with error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set team ID": {
      "main": [
        [
          {
            "node": "Get issues",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set page URL": {
      "main": [
        [
          {
            "node": "Convert contents to Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get issue URL": {
      "main": [
        [
          {
            "node": "Add link to Notion block",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shorten title": {
      "main": [
        [
          {
            "node": "Get issue contents",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Team missing?": {
      "main": [
        [
          {
            "node": "Respond with error1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set team ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        null,
        [
          {
            "node": "Set assignee and title",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "n8n Form Trigger": {
      "main": [
        [
          {
            "node": "Fetch Linear team details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get issue contents": {
      "main": [
        [
          {
            "node": "Set page URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare issue data": {
      "main": [
        [
          {
            "node": "Create linear issue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create linear issue": {
      "main": [
        [
          {
            "node": "Get issue URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set assignee and title": {
      "main": [
        [
          {
            "node": "Shorten title",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add link to Notion block": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Linear team details": {
      "main": [
        [
          {
            "node": "Team missing?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert contents to Markdown": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unimported, unchecked to_do blocks only": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}