{"record":{"id":"2143e88880a124ce","repo":"eyaltoledano/claude-task-master","slug":"the-to-parameter-is-not-used-for-cross-tag-moves","errorCode":null,"errorMessage":"The \"to\" parameter is not used for cross-tag moves and will be ignored. Tasks retain their original IDs in the target tag.","messagePattern":"The \"to\" parameter is not used for cross-tag moves and will be ignored\\. Tasks retain their original IDs in the target tag\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"mcp-server/src/tools/move-task.js","lineNumber":78,"sourceCode":"\t\t},\n\t\texecute: withNormalizedProjectRoot(async (args, { log, session }) => {\n\t\t\ttry {\n\t\t\t\t// Check if this is a cross-tag move\n\t\t\t\tconst isCrossTagMove =\n\t\t\t\t\targs.fromTag && args.toTag && args.fromTag !== args.toTag;\n\n\t\t\t\tif (isCrossTagMove) {\n\t\t\t\t\t// Cross-tag move logic\n\t\t\t\t\tif (!args.from) {\n\t\t\t\t\t\treturn createErrorResponse(\n\t\t\t\t\t\t\t'Source IDs are required for cross-tag moves',\n\t\t\t\t\t\t\t'MISSING_SOURCE_IDS'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Warn if 'to' parameter is provided for cross-tag moves\n\t\t\t\t\tif (args.to) {\n\t\t\t\t\t\tlog.warn(\n\t\t\t\t\t\t\t'The \"to\" parameter is not used for cross-tag moves and will be ignored. Tasks retain their original IDs in the target tag.'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Find tasks.json path if not provided\n\t\t\t\t\tlet tasksJsonPath = args.file;\n\t\t\t\t\tif (!tasksJsonPath) {\n\t\t\t\t\t\ttasksJsonPath = findTasksPath(args, log);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Use cross-tag move function\n\t\t\t\t\treturn handleApiResult({\n\t\t\t\t\t\tresult: await moveTaskCrossTagDirect(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tsourceIds: args.from,\n\t\t\t\t\t\t\t\tsourceTag: args.fromTag,\n\t\t\t\t\t\t\t\ttargetTag: args.toTag,\n\t\t\t\t\t\t\t\twithDependencies: args.withDependencies || false,","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/eyaltoledano/claude-task-master/blob/c0c98d367c55296bfe69e65680625b6db437af02/mcp-server/src/tools/move-task.js#L60-L96","documentation":"This is not a failure but a warning emitted by the move-task tool: the 'to' parameter only renumbers tasks when moving within a tag; for cross-tag moves target tasks keep their original IDs, so a supplied 'to' is ignored. The move still proceeds into the destination tag.","triggerScenarios":"Invoking move-task with both a from-tag/to-tag (cross-tag move) and a 'to' ID parameter, e.g. move-task --from=5 --from-tag=backlog --to-tag=main --to=2.","commonSituations":"Assuming cross-tag move renumbers the task to a chosen ID in the target tag; copying an intra-tag move command and adding a tag argument; automation scripts that always pass 'to'.","solutions":["Remove the 'to' parameter for cross-tag moves; accept that the task ID is preserved in the destination tag.","If renumbering is required, move the task into the tag first, then perform a separate intra-tag move using 'to'.","Update automation/scripts to not pass 'to' when from-tag and to-tag differ."],"exampleFix":"// before\nmove-task --from=5 --from-tag=backlog --to-tag=main --to=2\n// after\nmove-task --from=5 --from-tag=backlog --to-tag=main // task 5 keeps ID 5 in main","handlingStrategy":"validation","validationCode":"if (args.fromTag !== args.toTag && args.to !== undefined) {\n  delete args.to; // 'to' is meaningless for cross-tag moves\n}","typeGuard":"function isIntraTagMove(args) {\n  return args.fromTag === args.toTag && typeof args.to !== 'undefined';\n}","tryCatchPattern":"null","preventionTips":["Only pass 'to' when the move stays within one tag.","Remember cross-tag moves preserve task IDs; renumber afterwards with a separate intra-tag move if needed.","Audit automation scripts that always include --to."],"tags":["mcp","parameters","tag-management","ignored-argument"],"backgroundTag":"ignored-parameter","analyzedSha":"c0c98d367c55296bfe69e65680625b6db437af02","analyzedAt":"2026-08-29T02:56:26.071Z","schemaVersion":2},"datasetVersion":"2026-08-29T07:17:48.351Z"}