jira-cli icon indicating copy to clipboard operation
jira-cli copied to clipboard

jira-cli view formatting suggestions

Open Llammissar opened this issue 7 years ago • 0 comments

This is sort of a small UX thing, but I think it'd be an improvement. Currently, jira-cli view looks like this

status               : Done
reporter             : the_boss
summary              : do the thing
assignee             : all_the_wyatts
link                 : https://jira.placeofwork.tld/browse/POW-302
issue                : POW-302

I personally find the order suboptimal when scanning because the most important information isn't at the top. At a baseline what I'd like to see is reordering it to more closely resemble the Jira web UI: Issue with summary, status, reporter, assignee, and link.

To get more ambitious, though, what I'd really like to see is... hm, maybe something like this:

wyatt@box ~ $ jira-cli view POW-309
POW-309: defeat space
Type        : Task      Status     : Closed      Reporter : the_boss
Priority    : Minor     Resolution : CANTFIX     Assignee : all_the_wyatts
wyatt@box ~ $ jira-cli view --full POW-309
POW-309: defeat space
Type        : Task      Status     : Closed      Reporter : the_boss
Priority    : Minor     Resolution : CANTFIX     Assignee : all_the_wyatts
Description :
  Dangerous. Space is dangerous. It’s really dangerous. Really dangerous.
  Space is dangerous. First of all, it's big. It’s beyond big. It's like
  super big. You can't use big here like you're saying: "about as big as 20
  Tokyo Domes?" This is way beyond that level. After all it's infinite.
  Whoa! And you can't measure it in units. This is beyond tatami mats or
  hectares. It’s infinite and it's super big. And supposedly, it's
  expanding. That's dangerous. It's expanding. Since normal stuff like the
  earth doesn't expand. It'd be a problem if your floor started growing.
  That'd make the trip to the bathroom longer. If the road to school grew
  longer and a ten minute walk during my first year turned into a two hour
  bike ride in my third year, I'd want to cry. That's why Earth doesn't
  expand. It's willing to be reasonable.
Comments    :
  yyyy-mm-dd hh:mm:ss all_the_wyatts : Uh, boss?  This is impossible.
  yyyy-mm-dd hh:mm:ss the_boss : what if we use science?

I limited the above to 80 columns for illustration's sake, but the point is to take advantage of the big terminals almost everyone has these days if possible.

Without the readability concerns holding it back, the old format could then be an optional output that's more useful for parsing with scripts (though JSON would probably be better still).

Llammissar avatar Jan 17 '18 19:01 Llammissar