1
0
mirror of https://github.com/strongdm/comply synced 2025-07-29 22:37:01 +00:00

Jira fields were swapped

This commit is contained in:
Justin McCarthy
2018-12-17 14:41:09 -08:00
parent 1a3e2a2bf7
commit e8a0ecd076

@@ -169,8 +169,8 @@ func toTickets(issues []jira.Issue) []*model.Ticket {
func toTicket(i *jira.Issue) *model.Ticket { func toTicket(i *jira.Issue) *model.Ticket {
t := &model.Ticket{Attributes: make(map[string]interface{})} t := &model.Ticket{Attributes: make(map[string]interface{})}
t.ID = i.ID t.ID = i.ID
t.Name = i.Fields.Description t.Name = i.Fields.Summary
t.Body = i.Fields.Summary t.Body = i.Fields.Description
createdAt := time.Time(i.Fields.Created) createdAt := time.Time(i.Fields.Created)
t.CreatedAt = &createdAt t.CreatedAt = &createdAt
t.State = toState(i.Fields.Resolution) t.State = toState(i.Fields.Resolution)