Add summary field to get-jira-ticket

This commit is contained in:
Miguel de la Cruz 2020-03-01 13:08:51 +01:00
parent 378fcbe65a
commit d5778abbd6
2 changed files with 3 additions and 2 deletions

View file

@ -136,5 +136,5 @@ func getJiraTicketStandaloneCmdF(cmd *cobra.Command, args []string) {
ErrorAndExit(cmd, err) 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)
} }

View file

@ -19,6 +19,7 @@ type JiraIssueFieldsStatus struct {
type JiraIssueFields struct { type JiraIssueFields struct {
Status JiraIssueFieldsStatus `json:"status"` Status JiraIssueFieldsStatus `json:"status"`
Summary string `json:"summary"`
} }
type JiraIssue struct { type JiraIssue struct {