multica-ai/multica · error

cannot reorder issue %s relative to itself

Error message

cannot reorder issue %s relative to itself

What it means

Error "cannot reorder issue %s relative to itself" thrown in multica-ai/multica.

Source

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

		return fmt.Errorf("issue %s has no status, cannot determine its column", issueRef.Display)
	}

	// Resolve the relative target up front, before any no-op shortcut, so a bad
	// --before/--after value (typo, self-reference) always errors instead of
	// being swallowed by the single-issue-column fast path below.
	relative := before != "" || after != ""
	var otherRef resolvedID
	if relative {
		otherInput := before
		if after != "" {
			otherInput = after
		}
		otherRef, err = resolveIssueRef(ctx, client, otherInput)
		if err != nil {
			return fmt.Errorf("resolve target issue: %w", err)
		}
		if otherRef.ID == issueRef.ID {
			return fmt.Errorf("cannot reorder issue %s relative to itself", issueRef.Display)
		}
	}

	// Scope the column to the issue's own project (when it has one) so the
	// computed position lands relative to the project board the issue lives on,
	// not a blend of every project's issues in this status.
	projectID := strVal(target, "project_id")
	column, err := fetchIssueColumn(ctx, client, wsID, projectID, status)
	if err != nil {
		return fmt.Errorf("list %s column: %w", status, err)
	}

	// Build the column order with the target removed, plus a lookup of every
	// position in the column (the target's own included, for the no-op check).
	positions := make(map[string]float64, len(column))
	ordered := make([]string, 0, len(column))
	for _, raw := range column {
		id := strVal(raw, "id")

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Pick a different target issue; an issue cannot be reordered relative to itself.

When it happens

Trigger: Thrown at server/cmd/multica/cmd_issue.go:1590 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/977d3cc39140c866. Report an issue: GitHub.