1
0
mirror of https://github.com/strongdm/comply synced 2024-12-24 06:21:37 +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
No known key found for this signature in database
GPG Key ID: 900437410E142A48

View File

@ -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)