Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(cli): add --parent flag to issue update command
Jiang Bohaneba68c15fdd9
diff --git a/server/cmd/multica/cmd_issue.go b/server/cmd/multica/cmd_issue.goindex 5e153241d3..ecef9c1125 100644--- a/server/cmd/multica/cmd_issue.go+++ b/server/cmd/multica/cmd_issue.go@@ -162,6 +162,7 @@ func init() {issueUpdateCmd.Flags().String("assignee", "", "New assignee name (member or agent)")issueUpdateCmd.Flags().String("project", "", "Project ID")issueUpdateCmd.Flags().String("due-date", "", "New due date (RFC3339 format)")+ issueUpdateCmd.Flags().String("parent", "", "Parent issue ID (use --parent \"\" to clear)")issueUpdateCmd.Flags().String("output", "json", "Output format: table or json")// issue status@@ -444,6 +445,14 @@ func runIssueUpdate(cmd *cobra.Command, args []string) error {body["assignee_type"] = aTypebody["assignee_id"] = aID}+ if cmd.Flags().Changed("parent") {+ v, _ := cmd.Flags().GetString("parent")+ if v == "" {+ body["parent_issue_id"] = nil+ } else {+ body["parent_issue_id"] = v+ }+ }if len(body) == 0 {return fmt.Errorf("no fields to update; use flags like --title, --status, --priority, --assignee, etc.")