@gonovus-ai/spec-flow-cli 2.2.0 → 2.3.0

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.
@@ -72,6 +72,38 @@ shows the children's progress, and the `hasParent`/`hasChildren` filters and the
72
72
  finished Requirement.
73
73
  - Do not move the Requirement to done because its children are: its owner accepts it.
74
74
 
75
+ ### Closing a parent with its open subtasks
76
+
77
+ Moving a Task never changes its subtasks by itself. To finish or cancel the whole
78
+ tree, ask for it explicitly:
79
+
80
+ ```bash
81
+ specflow work-item move --project-id PROJECT --work-item-id PAY-176 --expected-version '"7"' --status done --with-subtasks
82
+ specflow work-item complete --project-id PROJECT --work-item-id PAY-176 --expected-version '"7"' --with-subtasks
83
+ ```
84
+
85
+ - `--with-subtasks` only acts when the destination is a completed or canceled status.
86
+ It finds every unfinished subtask at any depth (including subtasks in other
87
+ Projects) and moves them with the parent in one atomic command: a stale version
88
+ anywhere refuses the whole move.
89
+ - A subtask in another Project goes to that Project's status of the same category:
90
+ the same slug, else the one with the same icon, else the category's first status.
91
+ - Subtasks you cannot update, or whose Project has no such status, keep their status;
92
+ the output's `subtasks.skipped` lists them with `reason` `no-permission` or
93
+ `no-matching-status`, and `subtasks.moved` lists what moved with each
94
+ `previousStatus`. `--position` cannot be combined with it.
95
+ - If any relations or workflow read fails (other than a subtask you may not read),
96
+ the command fails with `SUBTASK_CASCADE_UNREADABLE` and moves nothing; retry, or
97
+ move without the flag to move only the item.
98
+ - The search stops after 200 subtasks. When more exist, the command fails with
99
+ `SUBTASK_CASCADE_TRUNCATED` and moves nothing; move without the flag to move only
100
+ the item, or close the subtasks in smaller groups.
101
+ - Without the flag, a move or completion into a completed or canceled status that
102
+ leaves subtasks behind that could have moved prints a one-line warning diagnostic
103
+ on stderr.
104
+ Use the flag only when the User asked to close the subtasks too; otherwise report
105
+ the open subtasks and let the User decide.
106
+
75
107
  ### Every Task has one owner
76
108
 
77
109
  A Task's assignee is its owner: the one person who answers for getting it done. It
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonovus-ai/spec-flow-cli",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "SpecFlow supported command-line client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,6 +39,7 @@
39
39
  ],
40
40
  "scripts": {
41
41
  "build": "tsc -p tsconfig.build.json && node ../../scripts/build-cli-default-origin.mjs",
42
+ "generate": "node ../../scripts/generate-cli-subtask-cascade.ts",
42
43
  "lint": "eslint .",
43
44
  "test": "vitest run --root ../.. --project cli",
44
45
  "typecheck": "tsc -p tsconfig.json --noEmit"