multica-ai/multica · error

--after requires an issue ID or key

Error message

--after requires an issue ID or key

What it means

Error "--after requires an issue ID or key" thrown in multica-ai/multica.

Source

Thrown at server/cmd/multica/cmd_issue.go:1537

	before, _ := cmd.Flags().GetString("before")
	after, _ := cmd.Flags().GetString("after")
	top, _ := cmd.Flags().GetBool("top")
	bottom, _ := cmd.Flags().GetBool("bottom")

	// "Exactly one of --before/--after/--top/--bottom" is enforced declaratively
	// by the command's mutually-exclusive, one-required flag group (see
	// registerIssueReorderFlags), so cobra rejects zero-target and multi-target
	// invocations before RunE runs. Cobra keys off flag *presence* (Changed),
	// not value, so guard the cases it cannot see: a --before/--after passed
	// empty (e.g. an unset shell variable), or a --top/--bottom explicitly set
	// to false (e.g. `--top=false` from a generated command). Each counts as
	// "set" for the group yet selects no real target, and would otherwise fall
	// through to a confusing "not found in column" error.
	if cmd.Flags().Changed("before") && before == "" {
		return fmt.Errorf("--before requires an issue ID or key")
	}
	if cmd.Flags().Changed("after") && after == "" {
		return fmt.Errorf("--after requires an issue ID or key")
	}
	if cmd.Flags().Changed("top") && !top {
		return fmt.Errorf("--top cannot be set to false; pass it on its own to move the issue to the top of its column")
	}
	if cmd.Flags().Changed("bottom") && !bottom {
		return fmt.Errorf("--bottom cannot be set to false; pass it on its own to move the issue to the bottom of its column")
	}

	client, err := newAPIClient(cmd)
	if err != nil {
		return err
	}

	ctx, cancel := cli.APIContext(context.Background())
	defer cancel()

	wsID := client.WorkspaceID
	if wsID == "" {

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Pass an issue ID or key to --after.

When it happens

Trigger: Thrown at server/cmd/multica/cmd_issue.go:1537 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15). Data as JSON: /api/errors/dc8dcfec5ae78903. Report an issue: GitHub.