We're updating the issue view to help you get more done. 

Support outputType as a option instead of the default pretty print output for single entity display

Description

Most get actions for getting information about a single construct produce formatted output some people refer to a pretty print. Example:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 -a getProject --project zjiracli Data for project: zjiracli Key . . . . . . . . . . . . . : ZJIRACLI Id . . . . . . . . . . . . . : 62155 Name . . . . . . . . . . . . : zjiracli for automated testing Description . . . . . . . . . : Template for standard testing projects. Lead . . . . . . . . . . . . : automation Default assignee . . . . . . : UNASSIGNED Project type . . . . . . . . : software Project style . . . . . . . . : classic Project URL . . . . . . . . . : Jira URL . . . . . . . . . . : https://*** Issue count . . . . . . . . . : 19 Issue security scheme . . . . : Notification scheme . . . . . : test (10010) Permission scheme . . . . . . : Default Permission Scheme (0) Priority scheme . . . . . . . : Default priority scheme (23370)

With this improvement, the outputType parameter can be used to have the output data formatted in a different way, like table, text, or json:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 -a getProject --project zjiracli --outputType table Data for project: zjiracli ┌───────────────────────┬─────────────────────────────────────────┐ │ Name │ Value │ ├───────────────────────┼─────────────────────────────────────────┤ │ Key │ ZJIRACLI │ ├───────────────────────┼─────────────────────────────────────────┤ │ Id │ 62155 │ ├───────────────────────┼─────────────────────────────────────────┤ │ Name │ zjiracli for automated testing │ ├───────────────────────┼─────────────────────────────────────────┤ │ Description │ Template for standard testing projects. │ ├───────────────────────┼─────────────────────────────────────────┤ │ Lead │ automation │ ├───────────────────────┼─────────────────────────────────────────┤ │ Default assignee │ UNASSIGNED │ ├───────────────────────┼─────────────────────────────────────────┤ │ Project type │ software │ ├───────────────────────┼─────────────────────────────────────────┤ │ Project style │ classic │ ├───────────────────────┼─────────────────────────────────────────┤ │ Project URL │ │ ├───────────────────────┼─────────────────────────────────────────┤ │ Jira URL │ http://*** │ ├───────────────────────┼─────────────────────────────────────────┤ │ Issue count │ 19 │ ├───────────────────────┼─────────────────────────────────────────┤ │ Issue security scheme │ │ ├───────────────────────┼─────────────────────────────────────────┤ │ Notification scheme │ test (10010) │ ├───────────────────────┼─────────────────────────────────────────┤ │ Permission scheme │ Default Permission Scheme (0) │ ├───────────────────────┼─────────────────────────────────────────┤ │ Priority scheme │ Default priority scheme (23370) │ └───────────────────────┴─────────────────────────────────────────┘

Similarly for json output.

1 2 3 4 -a getProject --project zjiracli --outputType json Data for project: zjiracli {"Description":"Template for standard testing projects.","Project URL":"","Default assignee":"UNASSIGNED","Project style":"classic","Priority scheme":"Default priority scheme (23370)","Jira URL":"http:***","Name":"zjiracli for automated testing","Permission scheme":"Default Permission Scheme (0)","Project type":"software","Notification scheme":"test (10010)","Lead":"automation","Id":"62155","Issue count":"19","Issue security scheme":"","Key":"ZJIRACLI"}

Note

The outputType is a global parameter in that it is not listed in the parameter list for individual actions, but is valid for all get and get...List actions implicitly. It is only listed in the parameter section.

Environment

None

Status

Assignee

Bob Swift [Bob Swift Atlassian Apps]

Reporter

Bob Swift [Bob Swift Atlassian Apps]

Labels

None

Support Entitlement

None

Fix versions

Priority

Major