sprintHandler saves a record into the `sprints` table
(boardId string)
| 587 | |
| 588 | // sprintHandler saves a record into the `sprints` table |
| 589 | func (s *Service) sprintHandler(boardId string) func(record map[string]interface{}) errors.Error { |
| 590 | return func(record map[string]interface{}) errors.Error { |
| 591 | id, err := getStringField(record, "id", true) |
| 592 | if err != nil { |
| 593 | return err |
| 594 | } |
| 595 | record["original_board_id"] = boardId |
| 596 | err = s.dal.CreateWithMap(&ticket.Sprint{}, record) |
| 597 | if err != nil { |
| 598 | return err |
| 599 | } |
| 600 | |
| 601 | // Create board_sprint relation |
| 602 | return s.dal.CreateOrUpdate(&ticket.BoardSprint{ |
| 603 | BoardId: boardId, |
| 604 | SprintId: id, |
| 605 | }) |
| 606 | } |
| 607 | } |
| 608 | |
| 609 | // ImportIssueChangelog imports csv file into the table `issue_changelogs` |
| 610 | func (s *Service) ImportIssueChangelog(boardId string, file io.ReadCloser, incremental bool) errors.Error { |
no test coverage detected