Add jira status field sync

This commit is contained in:
Miguel de la Cruz 2020-04-28 15:18:34 +02:00
parent b629a93af4
commit 8732aee990

View file

@ -135,7 +135,7 @@ func (c *JiraClient) PublishNextTicket(cmp *model.Campaign, dryRun bool) (bool,
ticket.JiraLink = fmt.Sprintf("%s/browse/%s", cmp.Jira.Url, issue.Key)
ticket.Summary = issue.Fields.Summary
ticket.Description = issue.Fields.Description
// ToDo: sync JiraStatus
ticket.JiraStatus = issue.Fields.Status.Name
if err := campaign.Save(cmp); err != nil {
return false, err
}