{
  "nodes": [
    {
      "id": "77af14bb-db74-4069-adcc-d66e3bb3f893",
      "name": "Cron Trigger",
      "type": "n8n-nodes-base.cron",
      "position": [
        400,
        300
      ],
      "parameters": {
        "triggerTimes": {
          "item": [
            {
              "hour": 12,
              "minute": 15
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "286b8b82-78c5-458a-b708-79f0b7d1437c",
      "name": "Elasticsearch Query",
      "type": "n8n-nodes-base.elasticsearch",
      "position": [
        600,
        300
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "425719a5-41d2-4f3a-80ba-241620d9f793",
      "name": "Check for Alerts",
      "type": "n8n-nodes-base.if",
      "position": [
        800,
        300
      ],
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{$json[\"hits\"][\"total\"][\"value\"]}}",
              "operation": "greater"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a2c6bd3d-c65d-4653-8183-9525a4c3af79",
      "name": "Create Work Item",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        280
      ],
      "parameters": {
        "url": "https://dev.azure.com/<organization>/<project>/_apis/wit/workitems/$Task?api-version=7.1-preview.3",
        "options": {},
        "authentication": "basicAuth",
        "headerParametersUi": {
          "parameter": [
            {
              "name": "Content-Type",
              "value": "application/json-patch+json"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "71ee087f-4f75-4544-b26a-95c7ce12d020",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1060,
        460
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "54de9055-e1b7-5e5d-bc02-6f3d0c299fe4",
      "name": "Publication · Overview and setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -800,
        0
      ],
      "parameters": {
        "content": "# cron and elasticsearch and create work item\n\n## Purpose and structure\nThis folder contains the **cron and elasticsearch and create work item** workflow. Its executable nodes use `cron`, `elasticsearch`, `httpRequest`, `if`, `noOp`. 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\nCron Trigger\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/Elasticsearch/0616_Elasticsearch_Cron_Create_Webhook.json\nMIT; preserve source notices.",
        "width": 700,
        "height": 800,
        "color": 1
      }
    }
  ],
  "connections": {
    "Cron Trigger": {
      "main": [
        [
          {
            "node": "Elasticsearch Query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Alerts": {
      "main": [
        [
          {
            "node": "Create Work Item",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Elasticsearch Query": {
      "main": [
        [
          {
            "node": "Check for Alerts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false
}
