Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'jira issue list' always prints 'KEY' #747

Open
the-real-neil opened this issue Jul 5, 2024 · 1 comment
Open

'jira issue list' always prints 'KEY' #747

the-real-neil opened this issue Jul 5, 2024 · 1 comment

Comments

@the-real-neil
Copy link

Describe the bug
jira issue list always prints the KEY column, even when --columns is overridden.

Please provide following details

  1. JiraCLI Version:
    (Version="v1.5.1", GitCommit="", CommitDate="", GoVersion="go1.22.5", Compiler="gc", Platform="linux/amd64")
    
  2. Are you using Jira cloud or on-premise jira server?
    SERVER INFO
    -----------
    
    Version: 	 9.12.10
    Build Number: 	 9120010
    Deployment Type: Server
    Default Locale:  
    
  3. What operating system are you using? Also mention version.
    $ cat /etc/os-release
    PRETTY_NAME="Ubuntu 22.04.4 LTS"
    NAME="Ubuntu"
    VERSION_ID="22.04"
    VERSION="22.04.4 LTS (Jammy Jellyfish)"
    VERSION_CODENAME=jammy
    ID=ubuntu
    ID_LIKE=debian
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    UBUNTU_CODENAME=jammy
    
  4. What terminal are you using? Also mention version.
    st 0.9.2
    

To Reproduce

Steps to reproduce the behavior:

Only --columns=KEY prints a single column:

$ for column in KEY, TYPE, SUMMARY, STATUS, ASSIGNEE, REPORTER, PRIORITY, RESOLUTION, CREATED, UPDATED, LABELS, ; do jira issue list --plain --no-headers --no-truncate --paginate=1:1 --columns="${column}" | awk -F'\t' '{print NF}' ; done
1
2
2
2
2
2
2
2
2
2
2

Expected behavior

Each --columns="${column}" should print a single column:

$ for column in KEY, TYPE, SUMMARY, STATUS, ASSIGNEE, REPORTER, PRIORITY, RESOLUTION, CREATED, UPDATED, LABELS, ; do jira issue list --plain --no-headers --no-truncate --paginate=1:1 --columns="${column}" | awk -F'\t' '{print NF}' ; done
1
1
1
1
1
1
1
1
1
1
1

Screenshots
Not applicable.

Additional context
Not applicable.

@ankitpokhrel
Copy link
Owner

@the-real-neil This was initially by design since the TUI always need to have access to the issue key for other commands like view and move to work. I think we can remove this when using --plain flag tho.

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

No branches or pull requests

2 participants