-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Issue co-written with dear assistant Claude Code 🤖
Feature Request
Add a linearis graphql command that allows users to execute custom GraphQL queries directly against the Linear API.
Motivation
- Workarounds: Users can work around missing CLI features immediately
- Community solutions: Workarounds shared in GitHub issues help identify demand and inform implementation
- Power users: Advanced users get full API access without leaving the CLI
- Exploration: Easier to explore the API and prototype before requesting features
Proposed Solution
# Inline query
linearis graphql '{ viewer { id name email } }'
# From file
linearis graphql --file query.graphql
# With variables
linearis graphql --file query.graphql --vars '{"id": "issue-uuid"}'
# Or via stdin
echo '{ viewer { id name } }' | linearis graphqlExample Use Cases
# Get estimate (not currently exposed)
linearis graphql '{ issue(id: "uuid") { estimate } }'
# Get relations (not currently exposed)
linearis graphql '{ issue(id: "uuid") { relations { nodes { type relatedIssue { identifier } } } } }'
# Get attachments (not currently exposed)
linearis graphql '{ issue(id: "uuid") { attachments { nodes { url title } } } }'
# Set estimate via mutation
linearis graphql 'mutation { issueUpdate(id: "uuid", input: { estimate: 5 }) { success } }'Benefits
- Users unblocked immediately for missing features
- Shared workarounds in issues become documentation
- Reduces pressure to implement every edge case
- Aligns with Linear's own GraphQL-first approach
Reference
- Linear GraphQL API: https://linear.app/developers/graphql
- Schema explorer: https://studio.apollographql.com/public/Linear-API/schema/reference
Metadata
Metadata
Assignees
Labels
No labels