{
  "nodes": [
    {
      "id": "22e8e117-2475-4b06-966c-9b35c9c749f8",
      "name": "On updated database page",
      "type": "n8n-nodes-base.notionTrigger",
      "position": [
        180,
        620
      ],
      "parameters": {
        "event": "pagedUpdatedInDatabase",
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "databaseId": "REPLACE_WITH_DATABASEID"
      },
      "typeVersion": 1
    },
    {
      "id": "6938eddf-39ec-46c4-a9a9-082ee0edd836",
      "name": "Update an existing task",
      "type": "n8n-nodes-base.clickUp",
      "position": [
        400,
        620
      ],
      "parameters": {
        "id": "={{$node[\"On updated database page\"].json[\"ClickUp ID\"]}}",
        "operation": "update",
        "updateFields": {
          "name": "={{$node[\"On updated database page\"].json[\"Task name\"]}}",
          "status": "={{$node[\"On updated database page\"].json[\"Status\"]}}",
          "dueDate": "={{$node[\"On updated database page\"].json[\"Deadline\"][\"start\"]}}"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "84cd269a-e732-408e-8b1a-66b1a7623fc1",
      "name": "On task status updated",
      "type": "n8n-nodes-base.clickUpTrigger",
      "position": [
        180,
        820
      ],
      "parameters": {
        "team": "2627397",
        "events": [
          "taskStatusUpdated"
        ],
        "filters": {}
      },
      "typeVersion": 1
    },
    {
      "id": "a5d6cee8-9dae-45ca-9540-4835365a4ab1",
      "name": "Get database page by ClickUp ID",
      "type": "n8n-nodes-base.notion",
      "position": [
        400,
        820
      ],
      "parameters": {
        "filters": {
          "conditions": [
            {
              "key": "REPLACE_WITH_KEY",
              "condition": "equals",
              "richTextValue": "={{$node[\"On task status updated\"].json[\"task_id\"]}}"
            }
          ]
        },
        "options": {},
        "resource": "databasePage",
        "operation": "getAll",
        "returnAll": true,
        "databaseId": "REPLACE_WITH_DATABASEID",
        "filterType": "manual"
      },
      "typeVersion": 2
    },
    {
      "id": "eeaff75d-8c47-4e2d-b2e2-87d5b6e59499",
      "name": "Update the status of found database page",
      "type": "n8n-nodes-base.notion",
      "position": [
        620,
        820
      ],
      "parameters": {
        "pageId": "={{$node[\"Get database page by ClickUp ID\"].json[\"id\"]}}",
        "resource": "databasePage",
        "operation": "update",
        "propertiesUi": {
          "propertyValues": [
            {
              "key": "REPLACE_WITH_KEY",
              "selectValue": "={{$node[\"On task status updated\"].json[\"history_items\"][0][\"after\"][\"status\"]}}"
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "bd0d9aab-98a5-5f2a-a843-5cc4a1f6209a",
      "name": "Publication · Overview and setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -800,
        0
      ],
      "parameters": {
        "content": "# receive notion events and update click up and receive click up events\n\n## Purpose and structure\nThis folder contains the **receive notion events and update click up and receive click up events** workflow. Its executable nodes use `clickUp`, `clickUpTrigger`, `notion`, `notionTrigger`. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.\n\n## Setup\nImport inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.\n\n## Entry points\nOn updated database page, On task status updated\n\n## Verification\nSanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.\n\n## Attribution\nhttps://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Clickup/0282_Clickup_Notion_Update_Triggered.json\nMIT; preserve source notices.",
        "width": 700,
        "height": 800,
        "color": 1
      }
    }
  ],
  "connections": {
    "On task status updated": {
      "main": [
        [
          {
            "node": "Get database page by ClickUp ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On updated database page": {
      "main": [
        [
          {
            "node": "Update an existing task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get database page by ClickUp ID": {
      "main": [
        [
          {
            "node": "Update the status of found database page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false
}
