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:
- The team key/name is resolved to a UUID and the issue is created in the correct team, OR
- 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+
Description
The
--teamoption onissues createaccepts 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:
ADV, UUID:06441021-...)EVR, UUID:5f5b365b-...) — the default teamExpected Behavior
Either:
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
--teamflag was ignored.Test Results
--teamvalueADV(key)ADVA(name)06441021-...(UUID)Additional Context
--assignee, but that case produces an explicit error. This--teamcase is worse because it's silent.--helptext explicitly states the flag accepts "team key, name, or ID", so the resolver is expected to handle all three.Environment