You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no way to discover a team's configuration via the CLI — most importantly the estimation scale. PR #94 adds --estimate to issues, but valid estimate values depend on the team's configured scale (fibonacci, exponential, linear, t-shirt, or disabled). Today, linearis teams list only returns id, key, and name.
This means:
A human using --estimate 5 has no way to check whether their team uses fibonacci, t-shirt sizing, or has estimates disabled entirely.
An LLM agent has no way to discover valid estimate values before constructing an issues create or issues update command.
Cycle configuration (duration, cooldown, start day) and workflow automation settings (triage, auto-close, auto-archive) are similarly invisible.
Proposed solution
Add teams read <team> command returning full team configuration as flat JSON:
Update TEAMS_META context to mention estimation scales and add arguments / seeAlso
TEAMS_META update:
exportconstTEAMS_META: DomainMeta={name: "teams",summary: "organizational units owning issues, cycles, and estimation config",context: ["a team is a group of users that owns issues, cycles, statuses, and","labels. teams are identified by a short key (e.g. ENG), name, or UUID.","each team configures its own estimation scale (fibonacci, exponential,","linear, t-shirt, or disabled). use teams read to discover the scale","before setting estimates. sub-teams can inherit estimation settings","from their parent.",].join("\n"),arguments: {team: "team key (e.g. ENG), name, or UUID",},seeAlso: ["issues create --team <team> --estimate <n>"],};
Alternatives considered
Separate teams config <team> subcommand — splits identity from settings but adds cognitive load. Agents would call both commands anyway, doubling API calls. A single read is consistent with issues read, cycles read, milestones read.
Grouped/nested JSON output (estimation, cycles, triage as sub-objects) — looks nicer to humans but adds nesting agents must navigate, and diverges from the flat GraphQL field names every other read command returns.
What problem does this solve?
There's no way to discover a team's configuration via the CLI — most importantly the estimation scale. PR #94 adds
--estimateto issues, but valid estimate values depend on the team's configured scale (fibonacci, exponential, linear, t-shirt, or disabled). Today,linearis teams listonly returnsid,key, andname.This means:
--estimate 5has no way to check whether their team uses fibonacci, t-shirt sizing, or has estimates disabled entirely.issues createorissues updatecommand.Proposed solution
Add
teams read <team>command returning full team configuration as flat JSON:Accepts team key (
ENG), name, or UUID — same resolution as--teamonissues create.Implementation outline:
TeamDetailFieldsfragment +GetTeamByIdquery (keeps existingTeamFieldsforlist)getTeam(client, id)function inteam-service.tsresolveTeamIdalready handles key/name/UUIDread <team>subcommand inteams.tsTeamDetailtype incommon/types.tsTEAMS_METAcontext to mention estimation scales and addarguments/seeAlsoTEAMS_METAupdate:Alternatives considered
teams config <team>subcommand — splits identity from settings but adds cognitive load. Agents would call both commands anyway, doubling API calls. A singlereadis consistent withissues read,cycles read,milestones read.readcommand returns.Additional context
Follows up on feat(issues): add --estimate and --clear-estimate #94 which adds
--estimateand--clear-estimateto issues (refs Feature: Add estimate support to issues #26)The Linear
TeamGraphQL type exposes all these fields; no custom API work neededEstimation scales and their API integer values:
notUsedfibonacciexponentiallineartShirtinheritIssueEstimation+parentis included so sub-team users can trace where their estimation settings actually come from