Skip to content

Add --description flag to issue view for summary + description only output - #9

Merged
rethab merged 1 commit into
mainfrom
fix/issue-933
Jul 12, 2026
Merged

Add --description flag to issue view for summary + description only output#9
rethab merged 1 commit into
mainfrom
fix/issue-933

Conversation

@rethab

@rethab rethab commented Jul 12, 2026

Copy link
Copy Markdown
Owner

`jira issue view` currently only supports the full pretty/plain rendering (emoji header, subtasks, linked issues, comments, and a Jira URL footer) or `--raw`, which dumps the entire Jira API JSON response. There was no way to get just the subject and description as clean text, so users resorted to piping `issue list --columns` output through custom jq/sed scripts.

This adds a `--description` flag that fetches the issue and prints only the summary and the translated description text (reusing the existing description-translation logic used by the pretty view), with no header, footer, comments, or emoji decoration. This makes the output easy to consume from scripts or other tools.

Addresses ankitpokhrel#933.

Currently `jira issue view` only offers full pretty/plain output (with
header, subtasks, links, comments, footer) or the entire raw API JSON.
There was no clean way to get just the subject and description, which
users were working around with `issue list --columns` plus custom
jq/sed scripts. The new --description flag prints just those two
fields with no decoration, making it easy to pipe into scripts or
other tools.
@rethab
rethab merged commit 3164626 into main Jul 12, 2026
1 check passed
@rethab
rethab deleted the fix/issue-933 branch July 12, 2026 05:52
rethab added a commit that referenced this pull request Aug 5, 2026
…utput (#9)

\`jira issue view\` currently only supports the full pretty/plain
rendering (emoji header, subtasks, linked issues, comments, and a Jira
URL footer) or \`--raw\`, which dumps the entire Jira API JSON response.
There was no way to get just the subject and description as clean text,
so users resorted to piping \`issue list --columns\` output through
custom jq/sed scripts.

This adds a \`--description\` flag that fetches the issue and prints
only the summary and the translated description text (reusing the
existing description-translation logic used by the pretty view), with no
header, footer, comments, or emoji decoration. This makes the output
easy to consume from scripts or other tools.

Addresses ankitpokhrel#933.
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