From e8a0ecd0765e512e574547765057603ca1caed45 Mon Sep 17 00:00:00 2001 From: Justin McCarthy Date: Mon, 17 Dec 2018 14:41:09 -0800 Subject: [PATCH] Jira fields were swapped --- internal/jira/jira.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/jira/jira.go b/internal/jira/jira.go index 7c9aba4..bafad4d 100644 --- a/internal/jira/jira.go +++ b/internal/jira/jira.go @@ -169,8 +169,8 @@ func toTickets(issues []jira.Issue) []*model.Ticket { func toTicket(i *jira.Issue) *model.Ticket { t := &model.Ticket{Attributes: make(map[string]interface{})} t.ID = i.ID - t.Name = i.Fields.Description - t.Body = i.Fields.Summary + t.Name = i.Fields.Summary + t.Body = i.Fields.Description createdAt := time.Time(i.Fields.Created) t.CreatedAt = &createdAt t.State = toState(i.Fields.Resolution)