Skip to content

Can't use --csv flag (or --raw) #874

@night-jellyfish

Description

@night-jellyfish

Describe the bug

Hi! When I try to use the --csv flag as documented, I get unknown flag: --csv and help information about the available flags, none of which include csv.

I've tried both with no other flag (jira issue list --csv) and with a flag (jira issue list --csv -pXYZ).

I tried --raw as well with the same resulting error. --plain does work, however.

Please provide following details

  1. JiraCLI Version:
    (Version="1.6.0", GitCommit="6a6611ce59f1a85203b021af9113b2a4e82ecaef", CommitDate="2025-04-19T09:33:11+00:00", GoVersion="go1.24.1", Compiler="gc", Platform="darwin/arm64")
    
  2. Are you using Jira cloud or on-premise jira server?
Version:         9.12.24
Build Number:    9120024
Deployment Type: Server
Default Locale:
  1. What operating system are you using? Also mention version.
    macOS Sequoia Version 15.5
    
  2. What terminal are you using? Also mention version.
    iTerm 2 Build 3.5.14
    

To Reproduce

Steps to reproduce the behavior:

  1. create a script file (get-jira-info.sh)
  2. include the line jira issue list --csv
  3. run sh get-jira-info.sh from iterm
  4. See error

Expected behavior
I expect to get an output of a CSV file with the issues returned.

Screenshots

Image

Additional context
My goal is to cycle through a few projects with the same keyword search and get one CSV with all that info from it. I'm not sure if I can do that in one go, or if I can name the CSV file created and append to it with the output.

Example:

#get-jira-info.sh:

#!/bin/sh

jira issue list -pABC -q "summary ~ 'Sample search'" --csv compilationOfIssues.csv
jira issue list -pDEF -q "summary ~ 'Sample search'" --csv compilationOfIssues.csv
jira issue list -pGHI -q "summary ~ 'Sample search'" --csv compilationOfIssues.csv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions