multica-ai/multica · error · ErrIssueLabelNotFound
issue label not found in this workspace
Error message
issue label not found in this workspace
What it means
Sentinel error from the issue-create service: one of the supplied label IDs doesn't resolve to a label in this workspace. Enforced server-side so a stale or foreign label ID can't be attached to a new issue; callers surface it as a 400-class error naming the offending label reference.
Solutions
- Pick a label that exists in this workspace.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at server/internal/service/issue.go:149 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/cda7efe9847676ed.
Report an issue: GitHub.
Appendix: source
Thrown at server/internal/service/issue.go:149
// ErrParentIssueNotFound signals that the supplied ParentIssueID does
// not exist in the issue's workspace. The service refuses to create
// orphaned or cross-workspace child issues; callers translate this into
// their transport's 400 / Lark card error.
var ErrParentIssueNotFound = errors.New("parent issue not found in this workspace")
// ErrProjectNotFound signals that the supplied ProjectID does not exist
// in the issue's workspace. Cross-workspace project IDs are rejected
// here so every create entry (HTTP `POST /issues`, Lark `/issue`, future
// MCP / API key callers) enforces the same workspace boundary without
// having to remember it. Callers translate this into 400.
var ErrProjectNotFound = errors.New("project not found in this workspace")
// ErrIssueLabelNotFound signals that one of the supplied LabelIDs does not
// exist in the issue's workspace or is not an issue-scoped label. The whole
// create is rejected so a new issue is never born with a partial or wrong
// label set. Callers translate this into their transport's 400.
var ErrIssueLabelNotFound = errors.New("issue label not found in this workspace")
// IssueCreateResult is the typed return from IssueService.Create.
//
// - On the happy path: Issue is the new row, Attachments lists the
// linked attachments (may be empty), DuplicateIssue is nil.
// - On ErrActiveDuplicate: DuplicateIssue is the row that blocked the
// create; Issue and Attachments are zero.
type IssueCreateResult struct {
Issue db.Issue
Attachments []db.Attachment
// AssignedTaskID is populated when Create enqueues the automatic task for
// an agent assignee, including a task deferred by AssignedAgentRunFireAt.
AssignedTaskID pgtype.UUID
// Labels is the authoritative set of labels attached to the new issue in
// the create transaction (empty when none were requested). Callers echo it
// on the create response + issue:created event so every client renders the
// new issue already labeled and a new client can detect that the backend
// understood label_ids (see the create handler's compatibility contract).View on GitHub (pinned to 2c0912b6ec)