Skip to content

fix(task-trackers): look up Linear issues by id, not IssueFilter.identifier - #10

Merged
danii1 merged 2 commits into
mainfrom
fix/linear-issue-lookup-by-id
Aug 18, 2026
Merged

fix(task-trackers): look up Linear issues by id, not IssueFilter.identifier#10
danii1 merged 2 commits into
mainfrom
fix/linear-issue-lookup-by-id

Conversation

@danii1

@danii1 danii1 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

devintern DAN-6 --create-pr --auto-review failed immediately on fetch with:

Linear API error (400): Field "identifier" is not defined by type "IssueFilter".

--create-pr and --auto-review never ran. The Linear client looked up issues with issues(filter: { identifier: { eq } }), but Linear's IssueFilter has no identifier field.

This switches getIssueByIdentifier and getIssueIdByIdentifier to the documented issue(id:) query, which accepts both human identifiers (DAN-6) and UUIDs. Missing issues still resolve to undefined (including Linear's Entity not found GraphQL error).

Test plan

  • bun test packages/task-trackers/linear-client.test.ts packages/pm/backends.test.ts packages/code/tests/linear-task-tracker-client.test.ts
  • Re-run devintern DAN-6 --create-pr --auto-review against a real Linear workspace and confirm the issue is fetched

danii1 added 2 commits August 17, 2026 18:01
…tifier

Linear's IssueFilter has no identifier field, so fetching a task like
DAN-6 failed with GRAPHQL_VALIDATION_FAILED before implementation
started. Use the documented issue(id:) query, which accepts both
identifiers and UUIDs.

Signed-off-by: Daniil Pokrovsky <daniil.pokrovsky@gmail.com>
`devintern dan-6 dan-7 dan-8` already used the batch loop, but Linear
identifiers were not covered by tests or help. Normalize each argument
(uppercase, unwrap linear.app URLs) independently so all keys are
fetched in order, and document the multi-issue form.

Signed-off-by: Daniil Pokrovsky <daniil.pokrovsky@gmail.com>
@danii1

danii1 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

@devintern-internal let's bump code/ package version (patch)

@danii1
danii1 merged commit d90774f into main Aug 18, 2026
1 check passed
@danii1 danii1 mentioned this pull request Aug 18, 2026
4 tasks
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.

1 participant