multica-ai/multica · error

issue was not found in the column

Error message

issue %s was not found in the %q column

What it means

reorderTargetNotInColumnError could not find the target issue among the column's ordered IDs (target fetch failed or it is not present in that column's list), so the relative position cannot be computed.

Solutions

  1. Refresh the column list and verify the issue is in the expected column.
Defensive patterns

Strategy: validation

When it happens

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

Appendix: source

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

			strVal(issue, "priority"),
		}}
		cli.PrintTable(os.Stdout, headers, rows)
		return nil
	}
	return cli.PrintJSON(os.Stdout, issue)
}

// reorderTargetNotInColumnError explains why a --before/--after target could
// not be used. It fetches the target only to report its actual column in the
// message, so the common mistake (target lives in a different column) gets a
// precise, actionable error instead of a bare "not found".
func reorderTargetNotInColumnError(ctx context.Context, client *cli.APIClient, otherRef, issueRef resolvedID, status string) error {
	if other, err := fetchIssue(ctx, client, otherRef.ID); err == nil {
		if otherStatus := strVal(other, "status"); otherStatus != "" && otherStatus != status {
			return fmt.Errorf("issue %s is in the %q column but %s is in %q; move one with `multica issue status` first, or pick a target in the same column", otherRef.Display, otherStatus, issueRef.Display, status)
		}
	}
	return fmt.Errorf("issue %s was not found in the %q column", otherRef.Display, status)
}

// fetchIssue retrieves a single issue by canonical ID.
func fetchIssue(ctx context.Context, client *cli.APIClient, id string) (map[string]any, error) {
	var issue map[string]any
	if err := client.GetJSON(ctx, "/api/issues/"+url.PathEscape(id), &issue); err != nil {
		return nil, err
	}
	return issue, nil
}

// fetchIssueColumn returns every issue in a status column ordered by position
// ascending, paginating through the list endpoint so columns larger than one
// page (the server caps a page at 100) still produce a complete, correctly
// ordered set. A non-empty projectID scopes the column to that project,
// matching a project board; an empty projectID lists the whole workspace
// column.
func fetchIssueColumn(ctx context.Context, client *cli.APIClient, workspaceID, projectID, status string) ([]map[string]any, error) {

View on GitHub (pinned to 2c0912b6ec)