{
  "name": "rapports",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -680,
        140
      ],
      "id": "7c6dd09d-a81c-488d-b259-8510f370edb0",
      "name": "When clicking ‘Test workflow’"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://test.intranet-netbyus.com/jsonrpc.php",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n    \"jsonrpc\": \"2.0\",\n    \"method\": \"getAllUsers\",\n    \"id\": 0\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -360,
        -200
      ],
      "id": "4f32f01f-294f-484f-9f4a-64a1a1e11340",
      "name": "USERS",
      "credentials": {
        "httpBasicAuth": {
          "id": "j3SRRmP3rloLugrO",
          "name": "Kanboard admin token connexion"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://test.intranet-netbyus.com/jsonrpc.php",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n    \"jsonrpc\": \"2.0\",\n    \"method\": \"getAllProjects\",\n    \"id\": 1\n} ",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -140,
        -40
      ],
      "id": "8cd7baf8-9bfb-40f4-8d34-924e4c037bf2",
      "name": "ALL PROJECTS",
      "credentials": {
        "httpBasicAuth": {
          "id": "j3SRRmP3rloLugrO",
          "name": "Kanboard admin token connexion"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://test.intranet-netbyus.com/jsonrpc.php",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n\"jsonrpc\": \"2.0\",\n    \"method\": \"getAllTasks\",\n    \"id\": 1,\n    \"params\": {\n        \"project_id\": {{ $json.result[0].id }} ,\n        \"status_id\": 1\n    }\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        80,
        -40
      ],
      "id": "fe496a46-28d2-4d22-94f9-6b943331f6d9",
      "name": "ALL TASKS",
      "credentials": {
        "httpBasicAuth": {
          "id": "j3SRRmP3rloLugrO",
          "name": "Kanboard admin token connexion"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://test.intranet-netbyus.com/jsonrpc.php",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n    \"jsonrpc\": \"2.0\",\n    \"method\": \"getAllTaskLinks\",\n    \"id\": 810848359,\n    \"params\": [\n        138\n    ]\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -420,
        140
      ],
      "id": "c90eff56-7a61-4e6b-81a5-34ad45bf98a9",
      "name": "HTTP Request",
      "credentials": {
        "httpBasicAuth": {
          "id": "j3SRRmP3rloLugrO",
          "name": "Kanboard admin token connexion"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "USERS": {
      "main": [
        [
          {
            "node": "ALL PROJECTS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ALL PROJECTS": {
      "main": [
        [
          {
            "node": "ALL TASKS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ALL TASKS": {
      "main": [
        []
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0127a2d2-8329-4386-95cc-74f23f7c681a",
  "meta": {
    "instanceId": "50cab9d6876720658d4e0d0a26972c05eda99ec85b486fe094c33bab381f9fd5"
  },
  "id": "zXvQWkiKdfiGDSzv",
  "tags": []
}