Skip to content

fix: --plain flag should imply --table in sprint list#971

Open
YoanWai wants to merge 1 commit intoankitpokhrel:mainfrom
YoanWai:fix/plain-implies-table
Open

fix: --plain flag should imply --table in sprint list#971
YoanWai wants to merge 1 commit intoankitpokhrel:mainfrom
YoanWai:fix/plain-implies-table

Conversation

@YoanWai
Copy link
Copy Markdown

@YoanWai YoanWai commented Mar 25, 2026

Summary

  • When using jira sprint list --plain, the --plain flag was ignored because only --table was checked in the TUI vs table mode decision
  • This adds plain to the branching condition in sprintExplorerView() so that --plain bypasses the TUI explorer and renders a plain table

Details

In internal/cmd/sprint/list/list.go, the condition that decides between TUI explorer and table output was:

if table || tui.IsDumbTerminal() || tui.IsNotTTY() {

Changed to:

if table || plain || tui.IsDumbTerminal() || tui.IsNotTTY() {

The plain variable was already read from flags earlier in the same function (line 215) and passed to view.DisplayFormat, so this is a minimal, safe addition.

Closes #968

When using `jira sprint list --plain`, the --plain flag was ignored
because only --table was checked in the TUI vs table mode decision.
Adding plain to the condition so --plain bypasses the TUI explorer
and renders a plain table, matching user expectations.

Closes ankitpokhrel#968
@YoanWai YoanWai force-pushed the fix/plain-implies-table branch from 7162376 to 75ee9be Compare March 25, 2026 16:13
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.

sprint list: --plain flag should imply --table

1 participant