Skip to content

Commit efb3a9c

Browse files
fix(dso-w0fc): update ticket-create.sh usage to show --parent flag syntax (merge worktree-20260327-200233)
2 parents 3e4436e + f0fc8a4 commit efb3a9c

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

plugins/dso/docs/ticket-cli-reference.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Ticket system initialized.
128128
Create a new ticket.
129129

130130
```
131-
.claude/scripts/dso ticket create <ticket_type> <title> [parent_id]
131+
.claude/scripts/dso ticket create <ticket_type> <title> [--parent <id>] [--priority <n>] [--assignee <name>]
132132
```
133133

134134
**Arguments:**
@@ -137,14 +137,16 @@ Create a new ticket.
137137
|---|---|---|
138138
| `ticket_type` | Yes | One of: `bug`, `epic`, `story`, `task` |
139139
| `title` | Yes | Non-empty title string (≤ 255 characters for Jira sync compatibility) |
140-
| `parent_id` | No | ID of an existing parent ticket |
140+
| `--parent` | No | ID of an existing parent ticket |
141+
| `--priority` | No | Priority 0-4 (0=critical, 4=backlog; default: 2) |
142+
| `--assignee` | No | Assignee name (default: git config user.name) |
141143

142144
**Output:** Prints the generated ticket ID to stdout (e.g., `ab12-cd34`). No other output on success.
143145

144146
**Behavior:**
145147

146148
- Generates a collision-resistant 8-character ID (format: `xxxx-xxxx`) derived from a UUID4
147-
- Validates that `parent_id` exists and has a CREATE event before writing
149+
- Validates that `--parent` ticket exists and has a CREATE event before writing
148150
- Writes a `CREATE` event JSON file to `.tickets-tracker/<ticket_id>/`
149151
- Commits the event atomically to the tickets branch
150152
- The new ticket has status `open` by default
@@ -162,7 +164,7 @@ Create a new ticket.
162164
$ .claude/scripts/dso ticket create task "Add rate limiting to API"
163165
w21-a3f7
164166
165-
$ .claude/scripts/dso ticket create story "As a user, I can reset my password" w21-a3f7
167+
$ .claude/scripts/dso ticket create story "As a user, I can reset my password" --parent w21-a3f7
166168
w21-b9c2
167169
```
168170

plugins/dso/scripts/ticket-create.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# plugins/dso/scripts/ticket-create.sh
33
# Create a new ticket with a CREATE event committed to the tickets branch.
44
#
5-
# Usage: ticket-create.sh <ticket_type> <title> [parent_id] [--priority <n>] [--assignee <name>]
5+
# Usage: ticket-create.sh <ticket_type> <title> [--parent <id>] [--priority <n>] [--assignee <name>]
66
# ticket_type: one of bug, epic, story, task
77
# title: non-empty string
8-
# parent_id: optional parent ticket ID (must exist in .tickets-tracker/)
8+
# --parent: optional parent ticket ID (must exist in .tickets-tracker/)
99
# --priority: optional priority (0-4; 0=critical, 4=backlog; default: 2)
1010
# --assignee: optional assignee name (defaults to git config user.name)
1111
#
@@ -21,10 +21,10 @@ TRACKER_DIR="$REPO_ROOT/.tickets-tracker"
2121

2222
# ── Usage ─────────────────────────────────────────────────────────────────────
2323
_usage() {
24-
echo "Usage: ticket create <ticket_type> <title> [parent_id] [--priority <n>] [--assignee <name>]" >&2
24+
echo "Usage: ticket create <ticket_type> <title> [--parent <id>] [--priority <n>] [--assignee <name>]" >&2
2525
echo " ticket_type: bug | epic | story | task" >&2
2626
echo " title: non-empty string" >&2
27-
echo " parent_id: optional parent ticket ID" >&2
27+
echo " --parent: optional parent ticket ID" >&2
2828
echo " --priority: 0-4 (0=critical, 4=backlog; default: 2)" >&2
2929
echo " --assignee: assignee name (default: git config user.name)" >&2
3030
exit 1

0 commit comments

Comments
 (0)