diff --git a/db/connectors/ticket b/db/connectors/ticket index 6df8b9d34..f9797b868 100755 --- a/db/connectors/ticket +++ b/db/connectors/ticket @@ -14,7 +14,7 @@ Usage: ticket sprint assign ticket deps ticket search - ticket create [--parent N] [--priority P] [--decision D] [--team T] + ticket create <type> <title> [--parent N] [--priority P] [--decision D] [--team T] [--description TEXT] ticket epics [--status S] ticket children <id> ticket count [--status S] @@ -256,9 +256,9 @@ def cmd_search(conn, keyword): def cmd_create(conn, args): - flags, positional = parse_flags(args, ["parent", "priority", "decision", "team"]) + flags, positional = parse_flags(args, ["parent", "priority", "decision", "team", "description"]) if len(positional) < 2: - out({"ok": False, "error": "Usage: ticket create <type> <title> [--parent N] [--priority P] [--decision D] [--team T]"}) + out({"ok": False, "error": "Usage: ticket create <type> <title> [--parent N] [--priority P] [--decision D] [--team T] [--description TEXT]"}) return ticket_type = positional[0] title = " ".join(positional[1:]) @@ -266,9 +266,10 @@ def cmd_create(conn, args): priority = flags.get("priority", "medium") decision_ref = flags.get("decision") team = flags.get("team") + description = flags.get("description") conn.execute( - "INSERT INTO tickets (type, title, parent_id, priority, decision_ref, team) VALUES (?, ?, ?, ?, ?, ?)", - (ticket_type, title, parent_id, priority, decision_ref, team)) + "INSERT INTO tickets (type, title, description, parent_id, priority, decision_ref, team) VALUES (?, ?, ?, ?, ?, ?, ?)", + (ticket_type, title, description, parent_id, priority, decision_ref, team)) conn.commit() last_id = query(conn, "SELECT last_insert_rowid() as id")[0]["id"] out({"ok": True, "id": last_id, "title": title}) @@ -330,7 +331,7 @@ Usage: ticket sprint assign <id> <sprint> Assign ticket to sprint ticket deps <id> Show ticket dependencies ticket search <keyword> Search tickets by title/description - ticket create <type> <title> [--parent N] [--priority P] [--decision D] [--team T] + ticket create <type> <title> [--parent N] [--priority P] [--decision D] [--team T] [--description TEXT] ticket epics [--status S] List epics with child counts ticket children <id> List children of a ticket ticket count [--status S] Count tickets by status"""