Skip to content

Add --board flag to sprint list command - #10

Merged
rethab merged 2 commits into
mainfrom
fix/issue-847
Jul 12, 2026
Merged

Add --board flag to sprint list command#10
rethab merged 2 commits into
mainfrom
fix/issue-847

Conversation

@rethab

@rethab rethab commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Adds a `--board` flag to `jira sprint list` that lets you fetch sprints from a board other than the one configured during `jira init`, without needing to reconfigure. Previously the board ID used for sprint listing was read exclusively from the stored config, so users working across multiple boards had no way to query a different one for a single invocation.

When the flag is used, the board name shown in the interactive sprint explorer falls back to displaying the overridden board's ID, since the configured board name no longer applies and fetching the name would require an extra API call.

Addresses ankitpokhrel#847.

rethab added 2 commits July 12, 2026 07:37
Allows overriding the board configured during `jira init` on a
per-invocation basis, so users working across multiple boards don't
have to reconfigure to list sprints from a different one.
Use flag.Changed instead of a zero check so --board is never silently
ignored, mark the overridden board as an ID (ankitpokhrel#42) rather than rendering
a bare number where a board name is expected, and document that sprint
issues are still filtered by the current project.
@rethab
rethab merged commit 7dc7282 into main Jul 12, 2026
1 check passed
@rethab
rethab deleted the fix/issue-847 branch July 12, 2026 06:35
rethab added a commit that referenced this pull request Aug 5, 2026
Adds a \`--board\` flag to \`jira sprint list\` that lets you fetch
sprints from a board other than the one configured during \`jira init\`,
without needing to reconfigure. Previously the board ID used for sprint
listing was read exclusively from the stored config, so users working
across multiple boards had no way to query a different one for a single
invocation.

When the flag is used, the board name shown in the interactive sprint
explorer falls back to displaying the overridden board's ID, since the
configured board name no longer applies and fetching the name would
require an extra API call.

Addresses ankitpokhrel#847.
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.

1 participant