linear-cli icon indicating copy to clipboard operation
linear-cli copied to clipboard

issue list --milestone returns empty when milestone has issues (issue query --json works)

Open jrschumacher opened this issue 6 months ago • 1 comments

Version: linear 2.0.0

linear issue list --project X --milestone Y returns "No issues found" even when the milestone has issues attached. linear issue query with the same filter args returns the issues correctly.

Repro

$ linear issue list --project "[BC] Y26 Q2" --milestone "F-AUTHED-UX-HARDENING" --all-states
No issues found.

$ linear issue query --project "[BC] Y26 Q2" --milestone "F-AUTHED-UX-HARDENING" --json | jq '.nodes | length'
4

Same project+milestone, same workspace, same auth. Only difference is the subcommand. The 4 issues genuinely exist (visible in Linear UI; milestone view also shows them).

Expected

issue list should return the same set as issue query for equivalent filters.

Workaround

Use issue query --json and parse. Worked around it across ~16 worker dispatches during a Linear shape migration.

jrschumacher avatar May 22 '26 02:05 jrschumacher

I think this is fixed. --project / --milestone filtering on the list path was reworked in #229 (dd39d9e, "fix(cli): accept both UUID and name for --project/--milestone") after issue list was split into issue mine / issue query. Milestone name→id resolution now lives in the list path (src/commands/issue/issue-mine.ts), which is what was missing when this returned empty.

Closing tentatively — please reopen if linear issue mine --project X --milestone Y still returns empty while issue query finds the same issues.

schpetbot avatar Jul 17 '26 20:07 schpetbot