diff --git a/cmd/standalone.go b/cmd/standalone.go index b9aa978..013dff3 100644 --- a/cmd/standalone.go +++ b/cmd/standalone.go @@ -136,5 +136,5 @@ func getJiraTicketStandaloneCmdF(cmd *cobra.Command, args []string) { ErrorAndExit(cmd, err) } - fmt.Printf("Key: %s\nStatus: %s\n", issue.Key, issue.Fields.Status.Name) + fmt.Printf("Summary: %s\nKey: %s\nStatus: %s\n", issue.Fields.Summary, issue.Key, issue.Fields.Status.Name) } diff --git a/jira/jira.go b/jira/jira.go index 57e0912..603ae06 100644 --- a/jira/jira.go +++ b/jira/jira.go @@ -18,7 +18,8 @@ type JiraIssueFieldsStatus struct { } type JiraIssueFields struct { - Status JiraIssueFieldsStatus `json:"status"` + Status JiraIssueFieldsStatus `json:"status"` + Summary string `json:"summary"` } type JiraIssue struct {