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
feat(718): issue view: raw response option #720
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mpalahuta, Thank you for working on this.
I was bit hesitant to support json response but since there are lot of requests for this (and now a PR), I am reconsidering my decision.
Having said that, if we want to go ahead with json response, I think we should send the entire raw json response from the API to the user. That would help us cover most of the usecase reported.
Let me know what you think!
Hey @ankitpokhrel Reg. raw response, sounds great, thanks! I will update this PR on Mon to do exactly that! |
hey @ankitpokhrel |
hi @ankitpokhrel, I am also interested in this improvement. Having this will enable new build/release automation scenarios for us. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Thank you 🎉
flagRaw = "raw" | ||
flagDebug = "debug" | ||
flagComments = "comments" | ||
flagPlain = "plain" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for refactoring this 👍🏻
#718
Adding
--json
flag to thejira issue view <KEY>
command so that the tool prints the issue contents as plain JSON if the flag is set. This feature allows users to process the issue information with their programs to support various automation scenarios.I've added an intermediate struct
printableIssue
to ensure correct null/empty values in the produced JSON, to avoid zero-values like