Skip to content

Add option to list issues in raw JSON #840

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

evg656e
Copy link

@evg656e evg656e commented Apr 28, 2025

Add an option to list issues in raw JSON — just like the create and view commands. This makes it easier to build bulk operations in shell scripts, e.g.:

jira issue list --jql '"Epic Link" = PRJ-123 AND assignee = jdoe' --raw `
    | ConvertFrom-Json `
    | select -ExpandProperty key `
    | %{
        jira issue assign $_ jsmith
    }
jira issue list --jql '"Epic Link" = PRJ-123 AND assignee = jdoe' --raw \
    | jq -r '.[].key' \
    | while read -r ISSUE; do
        jira issue assign $ISSUE jsmith
    done

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