@dyno181cm.nexsoft/zentao_mcp 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,9 +29,13 @@ export function registerStatusTools(server, client) {
29
29
  if (action === "finish") {
30
30
  // Fetch task details to get realStarted / estStarted if not provided (Zentao requires them)
31
31
  const task = await client.getTaskDetails(taskId);
32
- payload.realStarted = realStarted || task.realStarted || task.estStarted || new Date().toISOString().split("T")[0];
32
+ let taskRealStarted = task.realStarted || task.estStarted || "";
33
+ if (taskRealStarted.includes("T")) {
34
+ taskRealStarted = taskRealStarted.split("T")[0];
35
+ }
36
+ payload.realStarted = realStarted || taskRealStarted || new Date().toISOString().split("T")[0];
33
37
  payload.finishedDate = finishedDate || new Date().toISOString().split("T")[0];
34
- payload.consumed = consumed !== undefined ? consumed : (task.consumed || 0);
38
+ payload.currentConsumed = consumed !== undefined ? consumed : (task.consumed || task.estimate || 1);
35
39
  if (assignedTo)
36
40
  payload.assignedTo = assignedTo;
37
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyno181cm.nexsoft/zentao_mcp",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Zentao MCP Server",
5
5
  "repository": {
6
6
  "type": "git",