Skip to content

fix(issues): include project, cycle, parent, milestone in issues read#150

Merged
flipbit03 merged 1 commit into
mainfrom
feat/149-issues-read-omits-the-project-field-also
Jun 8, 2026
Merged

fix(issues): include project, cycle, parent, milestone in issues read#150
flipbit03 merged 1 commit into
mainfrom
feat/149-issues-read-omits-the-project-field-also

Conversation

@flipbit03

Copy link
Copy Markdown
Owner

Summary

Fixes #149. lineark issues read <ID> never returned the issue's project (nor cycle, parent, or projectMilestone) — the keys were entirely absent from the output, not null.

IssueDetail (the zero-overfetch type whose shape is the GraphQL query shape) selected state/assignee/team but had no project/cycle/parent/projectMilestone fields, so the generated query never requested them.

Changes

  • Add ProjectRef, MilestoneRef, and CycleRef nested ref types (mirroring the existing TeamRef/StateRef pattern).
  • Wire project, project_milestone, cycle, and parent (reusing RelatedIssueRef) onto IssueDetail. The GraphQLFields derive wires both the query and the serialized output automatically.
  • Update the issues read help text and usage reference to mention project.

Both --format json and --format human now surface these associations (human renderer skips null fields; JSON includes them as null when absent).

Test plan

  • make check
  • make test (offline) ✅ — 47 passed
  • Online: extended issues_read_json_includes_estimate_field to assert the project, projectMilestone, cycle, and parent keys are present. Ran against the live API ✅ — 1 passed.

IssueDetail selected state/assignee/team but never project, cycle,
parent, or projectMilestone, so the generated GraphQL query never
requested them and issues read omitted the keys entirely (not null —
absent). Add ProjectRef/MilestoneRef/CycleRef ref types and wire the
four fields onto IssueDetail; the GraphQLFields derive selects and
serializes them automatically.

Closes #149
@flipbit03 flipbit03 merged commit 18829e4 into main Jun 8, 2026
8 checks passed
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.

issues read omits the project field (also cycle/parent/milestone)

1 participant