8
n8n 中文网amn8n.com

自动同步Easy Redmine任务到Microsoft To-Do

中级

这是一个Miscellaneous, Project Management, Multimodal AI领域的自动化工作流,包含 11 个节点。主要使用 Code, SplitOut, MicrosoftToDo, ScheduleTrigger, EasyRedmine 等节点。 自动同步Easy Redmine任务到Microsoft To-Do

前置要求
  • 无特殊前置要求,导入即可使用
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "K51hnk5IudD64T80",
  "meta": {
    "instanceId": "ccf4e500c5536799e0925f03390f0fd338e2b5a5bc862f6a57b5552acfdf3861"
  },
  "name": "自动同步 Easy Redmine 任务到 Microsoft To-Do",
  "tags": [],
  "nodes": [
    {
      "id": "9881a903-5665-4cab-909c-33ace2e1449d",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -624,
        160
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 9
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "33b91048-42f0-4355-810a-c0f60fd0c56e",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1616,
        -400
      ],
      "parameters": {
        "width": 640,
        "height": 1600,
        "content": "## 自动同步 Easy Redmine 任务到 Microsoft To-Do"
      },
      "typeVersion": 1
    },
    {
      "id": "9c14d374-b5ac-4e41-8aa9-c3215e5f916f",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -848,
        -384
      ],
      "parameters": {
        "color": 7,
        "width": 1872,
        "height": 832,
        "content": "## 自动同步 Easy Redmine 任务到 Microsoft To-Do"
      },
      "typeVersion": 1
    },
    {
      "id": "6625c1e4-095f-4854-aa2b-d49572ee0a0f",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        -368
      ],
      "parameters": {
        "width": 512,
        "height": 368,
        "content": "## 最终输出示例(Microsoft To-Do)"
      },
      "typeVersion": 1
    },
    {
      "id": "05c99cdc-59d3-4e8a-8f3e-efc4aadedc3e",
      "name": "获取特定列表中的待办事项",
      "type": "n8n-nodes-base.microsoftToDo",
      "position": [
        -400,
        160
      ],
      "parameters": {
        "operation": "getAll",
        "taskListId": "AAMkADcxZTQyNjNhLWViZmMtNDAzYi05YmVlLTcwN2ZjZmJhMDMzNgAuAAAAAACrAudNNU6fQ4QFo2qMXN9hAQCQ5fbr8-B1RaMBjqcs7HbzAAThA6X8AAA="
      },
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "b60846a5-08d2-4f9b-9861-e59bfa9a7b83",
      "name": "清理待办列表",
      "type": "n8n-nodes-base.microsoftToDo",
      "onError": "continueErrorOutput",
      "position": [
        -192,
        160
      ],
      "parameters": {
        "taskId": "={{ $json.id }}",
        "operation": "delete",
        "taskListId": "AAMkADcxZTQyNjNhLWViZmMtNDAzYi05YmVlLTcwN2ZjZmJhMDMzNgAuAAAAAACrAudNNU6fQ4QFo2qMXN9hAQCQ5fbr8-B1RaMBjqcs7HbzAAThA6X8AAA="
      },
      "typeVersion": 1
    },
    {
      "id": "d8e153e3-d025-4f13-96be-ea7535791d3d",
      "name": "删除后仅一个输出",
      "type": "n8n-nodes-base.code",
      "position": [
        96,
        -48
      ],
      "parameters": {
        "jsCode": "const allTasks = items.map(item => item.json);\nconst summary = allTasks.map(task => `- ${task.title}`).join('\\n');\n\nreturn [\n  {\n    json: {\n      summary\n    }\n  }\n];\n"
      },
      "typeVersion": 2
    },
    {
      "id": "b9eb8111-45d2-41b7-a360-8d1fb5e05dd7",
      "name": "按筛选器获取 Easy Redmine 任务",
      "type": "@easysoftware/n8n-nodes-easy-redmine.easyRedmine",
      "position": [
        96,
        176
      ],
      "parameters": {
        "issueQueryId": 5342
      },
      "credentials": {
        "easyRedmineApi": {
          "id": "abcd1234efgh567",
          "name": "Name of Credentials "
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c728b2f2-a159-4d10-b2ac-7ae6fccc7589",
      "name": "拆分输出任务",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        288,
        176
      ],
      "parameters": {
        "include": "allOtherFields",
        "options": {},
        "fieldToSplitOut": "issues"
      },
      "typeVersion": 1
    },
    {
      "id": "dc827f02-f252-4d32-8fc4-7a5f3c32e042",
      "name": "将 Easy Redmine 任务链接添加到待办描述",
      "type": "n8n-nodes-base.code",
      "position": [
        480,
        176
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "// Fixed part of the URL\nconst baseUrl = \"https://es.easyproject.com/issues/\"; // here you need to add your Easy Redmine URL.\"\n\n// Variable part from previous node\nconst variablePart =  $('Split Out Tasks').item.json.issues.id ;// e.g., \"12345\"\n\n// Original text to enrich\nconst text = $('Split Out Tasks').item.json.issues.description; // e.g., \"This is the task description.\"\n\n// Construct the full link\nconst fullLink = `${baseUrl}${variablePart}`;\n\n// Enrich the text\nconst enrichedText = `${fullLink}\\n\\n${text}`;\n\nreturn {\n  json: {\n    enrichedText\n  }\n};"
      },
      "typeVersion": 2
    },
    {
      "id": "cb10ba1e-f154-4ca3-a694-2d6b82cdd245",
      "name": "创建待办任务",
      "type": "n8n-nodes-base.microsoftToDo",
      "position": [
        672,
        176
      ],
      "parameters": {
        "title": "={{ $('Split Out Tasks').item.json.issues.subject }}",
        "operation": "create",
        "taskListId": "AAMkADcxZTQyNjNhLWViZmMtNDAzYi05YmVlLTcwN2ZjZmJhMDMzNgAuAAAAAACrAudNNU6fQ4QFo2qMXN9hAQCQ5fbr8-B1RaMBjqcs7HbzAAThA6X8AAA=",
        "additionalFields": {
          "content": "={{ $json.enrichedText }}",
          "dueDateTime": "={{ $('Split Out Tasks').item.json.issues.due_date }}"
        }
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e0842545-bfe2-4c28-8244-d7547918d43c",
  "connections": {
    "Split Out Tasks": {
      "main": [
        [
          {
            "node": "Add Easy Redmine Task Link to To-Do Description",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean To-Do List": {
      "main": [
        [
          {
            "node": "Just One Output after Deletion",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Easy Redmine Task by Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get To-Do in Specific List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get To-Do in Specific List": {
      "main": [
        [
          {
            "node": "Clean To-Do List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Just One Output after Deletion": {
      "main": [
        [
          {
            "node": "Get Easy Redmine Task by Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Easy Redmine Task by Filter": {
      "main": [
        [
          {
            "node": "Split Out Tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Easy Redmine Task Link to To-Do Description": {
      "main": [
        [
          {
            "node": "Create To-Do Tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 杂项, 项目管理, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量11
分类3
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Easy8.ai

Easy8.ai

@easy8ai

We guide B2B companies to use AI agents & automations with ease. Powered by Easy Software & n8n.

外部链接
在 n8n.io 查看

分享此工作流