mirror of
https://github.com/strongdm/comply
synced 2024-11-05 07:25:26 +00:00
Jira fields were swapped
This commit is contained in:
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user