Follow-up split out of #47. Three commands were fixed there; the rest carry the same two defects and will fail on a machine with no az devops default organisation.
The two defects
1. Missing --organization. SKILL.md now requires org in config.json, passed as --organization $cfg.org on every az call. These commands pass no organisation at all, so every call fails with --organization must be specified — which reads like an auth problem and is not.
2. Unflattened WIQL here-strings. A --wiql value containing newlines is truncated at the first newline on Windows, so every flag after it never reaches az. Fix is to append -replace '\s*\r?\n\s*', ' ' to the here-string. Verified against four queries: all four failed un-flattened, all four succeeded flattened.
Scope
Needs fixing — none has an --organization argument anywhere:
Already fixed, use as the reference pattern: board-triage.md, blocked-work.md, daily-standup.md.
Notes
--org is not an accepted abbreviation for --organization on az boards query; it fails with the same misleading message as passing nothing.
- Mechanical change, but worth actually running one query per command afterwards rather than only eyeballing the diff — the failure mode is a misleading error message, so a wrong fix looks like a config problem.
Follow-up split out of #47. Three commands were fixed there; the rest carry the same two defects and will fail on a machine with no
az devopsdefault organisation.The two defects
1. Missing
--organization.SKILL.mdnow requiresorginconfig.json, passed as--organization $cfg.orgon everyazcall. These commands pass no organisation at all, so every call fails with--organization must be specified— which reads like an auth problem and is not.2. Unflattened WIQL here-strings. A
--wiqlvalue containing newlines is truncated at the first newline on Windows, so every flag after it never reachesaz. Fix is to append-replace '\s*\r?\n\s*', ' 'to the here-string. Verified against four queries: all four failed un-flattened, all four succeeded flattened.Scope
Needs fixing — none has an
--organizationargument anywhere:find-stale.md— 3 WIQL blocksmove-to-done.md— 1my-sprint-work.md— 3prepare-pbi.md— 1prioritize-backlog.md— 1split-pbi.md— 1sprint-retro.md— 1sprint-summary.md— 2log-time.md— no WIQL, butaz boards work-itemcalls need the org flagnew-pbi.md— same as aboveAlready fixed, use as the reference pattern:
board-triage.md,blocked-work.md,daily-standup.md.Notes
--orgis not an accepted abbreviation for--organizationonaz boards query; it fails with the same misleading message as passing nothing.