jira-cli icon indicating copy to clipboard operation
jira-cli copied to clipboard

Add a --board option to the sprint command

Open NicolasWebDev opened this issue 7 months ago • 1 comments

Hi,

When running jira sprint list, the board that gets used is the one configured in $HOME/.config/.jira/.config.yml. I understand that using --project (e.g., jira sprint list --project projectA) does not override this board configuration, which makes it difficult to list sprints from other projects.

Currently, the only workaround I’ve found is to manually edit the config file to switch the board, which becomes cumbersome when switching between multiple projects frequently.

Feature request: It would be great to support an additional option, such as --board <boardID>, in jira sprint list so that users can directly specify the board to use without having to change the global configuration.

This issue seems to be related to previous discussions and issues:

  • https://github.com/ankitpokhrel/jira-cli/issues/429#issuecomment-1211414694
  • https://github.com/ankitpokhrel/jira-cli/issues/428
  • https://github.com/ankitpokhrel/jira-cli/discussions/599
  • https://github.com/ankitpokhrel/jira-cli/issues/474

Thanks again for the great work on this CLI — it’s been incredibly helpful overall!

NicolasWebDev avatar May 13 '25 15:05 NicolasWebDev

Right now, I'm using the following to edit the configuration file automatically: yq -i ".board.id = ${board_id} | .board.name = \"${board_name}\" | .project.key = \"${project}\"" ~/.config/.jira/.config.yml && jira sprint list

NicolasWebDev avatar May 13 '25 15:05 NicolasWebDev