Skip to content

issues create: --team silently falls back to default team when key/name doesn't resolve #56

@ryanrozich

Description

@ryanrozich

Description

The --team option on issues create accepts a team key or name per the help text (team key, name, or ID), but when a key or name is provided, it silently falls back to the default team instead of resolving correctly or raising an error. Only raw UUIDs work.

This is distinct from #47 (assignee) because the failure mode is silent — no error is raised. The issue is created in the wrong team with no indication anything went wrong.

Steps to Reproduce

Given two teams:

  • ADVA (key: ADV, UUID: 06441021-...)
  • evergreen (key: EVR, UUID: 5f5b365b-...) — the default team
# Try with team key
linearis issues create "Test ticket" --team ADV
# → Created as EVR-X (wrong team, no error)

# Try with team name
linearis issues create "Test ticket" --team ADVA
# → Created as EVR-X (wrong team, no error)

# Try with UUID (only thing that works)
linearis issues create "Test ticket" --team "06441021-9818-4036-9b48-b6ea6a208871"
# → Created as ADV-X (correct)

Expected Behavior

Either:

  1. The team key/name is resolved to a UUID and the issue is created in the correct team, OR
  2. An error is raised indicating the team could not be resolved

Actual Behavior

The issue is silently created in the default team (evergreen/EVR) with no error or warning. This is particularly dangerous because the user has no indication the --team flag was ignored.

Test Results

--team value Result Expected
ADV (key) EVR (wrong, silent) ADV
ADVA (name) EVR (wrong, silent) ADV
06441021-... (UUID) ADV (correct) ADV

Additional Context

Environment

  • linearis version: 2025.12.3 (installed via npm, running version 2025.11.2)
  • OS: macOS (Darwin 25.3.0)
  • Runtime: Bun 1.1+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions