Skip to content

[Bug] CreateIssueCommand drops CategoryId and StatusId from form #118

@mpaulosky

Description

@mpaulosky

Summary

CreateIssuePage.razor wires up IssueForm correctly — the form collects Title, Description, CategoryId, and StatusId. However, the submit handler builds CreateIssueCommand with only Title and Description, silently dropping the selected category and status.

Root Cause

// CreateIssuePage.razor — HandleSubmit
var command = new CreateIssueCommand
{
    Title = request.Title,
    Description = request.Description
    // CategoryId and StatusId are missing!
};

The CreateIssueCommand may already have CategoryId/StatusId fields — they're just not being set from the form model.

Work Required

  • Inspect CreateIssueCommand record to confirm it has CategoryId and StatusId properties
  • Update HandleSubmit in CreateIssuePage.razor to pass request.CategoryId and request.StatusId
  • If the command is missing those fields, add them and update CreateIssueHandler to apply them
  • Validate that a created issue reflects the selected category and status in the detail page

Acceptance Criteria

  • Creating an issue with a selected Category shows that category on the issue detail page
  • Creating an issue with a selected Status shows that status on the issue detail page
  • Submitting without a category/status (if optional) uses a sensible default

Files

  • src/Web/Components/Features/Issues/CreateIssuePage.razor
  • src/Api/Handlers/Issues/CreateIssueHandler.cs
  • src/Shared/ (CreateIssueCommand definition)

Metadata

Metadata

Labels

go:yesReady to implementpriority:p1This sprintrelease:backlogNot yet targetedsprint-3Sprint 3 — Full CRUD UI + ArchivesquadSquad triage inbox — Lead will assign to a membersquad:legolasAssigned to Legolas (Frontend Dev)squad:samAssigned to Sam (Backend Dev)type:bugSomething broken

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions