From d5778abbd6aea7c1a1b0c1e1ca8b63e2558b11ad Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Sun, 1 Mar 2020 13:08:51 +0100 Subject: [PATCH] Add summary field to get-jira-ticket --- cmd/standalone.go | 2 +- jira/jira.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 {