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

Newlines don't work with --format #67

Open
Llammissar opened this issue Jan 17, 2018 · 1 comment
Open

Newlines don't work with --format #67

Llammissar opened this issue Jan 17, 2018 · 1 comment

Comments

@Llammissar
Copy link

Default jira-cli view is nice, but it doesn't show the description or any comments. The latter can be grabbed with --comments, but to get the description (arguably the most important part of any bug), you need to use --format="%description". And that's all you get; it's not nicely formatted like the others.

If you want all three? That's three separate invocations and inconvenient. Theoretically, you should be able be replicate this with a single --format, but in practice, you can't actually put newlines into the format string and have them render properly.

@jeremy-w
Copy link

newlines seem to work fine - you just need to supply a string with a literal newline.

e.g. in fishshell, running:

> jira-cli view \
  --search-jql 'summary ~ \'translator service\' and status != Done' \
  --format '''t: %summary
  k: %key
  -'''

produces output like:

t: mumble mumble mumble
k: XXX-1234
-
t: more mumble
k: XXX-1235
-

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