Skip to content

feat(cli): add --project filter to issue list#691

Merged
Bohan-J merged 1 commit into
multica-ai:mainfrom
nocoo:feat/issue-list-project-filter
Apr 11, 2026
Merged

feat(cli): add --project filter to issue list#691
Bohan-J merged 1 commit into
multica-ai:mainfrom
nocoo:feat/issue-list-project-filter

Conversation

@nocoo
Copy link
Copy Markdown
Contributor

@nocoo nocoo commented Apr 11, 2026

Summary

Add --project flag to multica issue list so users can filter issues by project.

--project was added to issue create and issue update in #562, but issue list was missed. This makes the CLI inconsistent — you can assign issues to projects but cannot list them by project.

Changes

CLI (server/cmd/multica/cmd_issue.go)

  • Register --project flag on issueListCmd
  • Pass project_id query parameter in runIssueList

API handler (server/internal/handler/issue.go)

  • Parse project_id query parameter in ListIssues
  • Pass to ListIssuesParams, ListOpenIssuesParams, and CountIssuesParams

SQL (server/pkg/db/queries/issue.sql)

  • Add project_id filter to ListIssues, ListOpenIssues, and CountIssues queries using the same sqlc.narg pattern as existing filters

Usage

multica issue list --project <project-id>
multica issue list --project <project-id> --status todo --output json

Test plan

  • go build ./cmd/multica/ — compiles
  • go build ./cmd/server/ — compiles
  • go test ./cmd/multica/ — passes
  • Manual test: created a project, assigned an issue, confirmed --project returns only matching issues

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
multica-web Ignored Ignored Apr 11, 2026 2:55am
multica-web-production Ignored Ignored Apr 11, 2026 2:55am

Request Review

@Bohan-J Bohan-J merged commit a761947 into multica-ai:main Apr 11, 2026
3 checks passed
wingtonrbrito pushed a commit to wingtonrbrito/multica that referenced this pull request May 27, 2026
Co-authored-by: nocoo <nocoo@users.noreply.github.com>
xiaoyue26 pushed a commit to xiaoyue26/multica that referenced this pull request May 30, 2026
Co-authored-by: nocoo <nocoo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants