(sourceName string, userMap FieldMap)
| 84 | } |
| 85 | |
| 86 | func resolveImportFieldMap(sourceName string, userMap FieldMap) FieldMap { |
| 87 | fm := defaultImportFieldMap() |
| 88 | if sourceName == "jira" { |
| 89 | fm = jiraDefaultFieldMap() |
| 90 | } |
| 91 | if len(userMap.Status) > 0 { |
| 92 | fm.Status = userMap.Status |
| 93 | } |
| 94 | if len(userMap.Priority) > 0 { |
| 95 | fm.Priority = userMap.Priority |
| 96 | } |
| 97 | return fm |
| 98 | } |
| 99 | |
| 100 | // importActionInternal extends ImportAction with an error field for internal use. |
| 101 | type importActionInternal struct { |
no test coverage detected