Skip to content

Conversation

@chadrwalters
Copy link

Summary

Adds teams list and users list commands that were missing from linearis.

New Commands

linearis teams list

  • Lists all teams in the workspace
  • Returns: id, key, name, description
  • Sorted alphabetically by name

linearis users list [--active]

  • Lists all users in the workspace
  • --active flag filters to active users only
  • Returns: id, name, displayName, email, active
  • Sorted alphabetically by name

Bug Fixes

  • GraphQL orderBy error: Removed invalid orderBy: "name" parameter (not in PaginationOrderBy enum). Results are now sorted client-side.
  • Case-sensitive project matching: Changed project name resolution to use eqIgnoreCase for better UX.

Implementation

Follows existing linearis patterns:

  • setupTeamsCommands() / setupUsersCommands() in src/commands/
  • getTeams() / getUsers() methods in LinearService
  • Registered in src/main.ts

Use Case

These commands enable LLM agents and automation tools to discover available teams and users for filtering issues, assigning work, etc.

Chad Walters and others added 2 commits November 19, 2025 16:14
Adds missing discovery commands for teams and users:

- `linearis teams list` - Lists all teams (id, key, name, description)
- `linearis users list [--active]` - Lists users with optional active filter

Also fixes:
- Remove invalid orderBy: "name" (sort client-side instead)
- Use case-insensitive matching for project name resolution

Co-Authored-By: Claude <noreply@anthropic.com>
- teams-cli.test.ts: Tests for teams list command
- users-cli.test.ts: Tests for users list command with --active flag

Co-Authored-By: Claude <noreply@anthropic.com>
@czottmann
Copy link
Owner

Solid contribution, thank you, @chadrwalters!

@czottmann czottmann merged commit 204082b into czottmann:main Nov 20, 2025
2 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.

2 participants