MCPcopy Create free account
hub / github.com/driangle/taskmd / resolveImportFieldMap

Function resolveImportFieldMap

apps/cli/internal/sync/import_engine.go:86–98  ·  view source on GitHub ↗
(sourceName string, userMap FieldMap)

Source from the content-addressed store, hash-verified

84}
85
86func 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.
101type importActionInternal struct {

Callers 1

RunImportFunction · 0.85

Calls 2

defaultImportFieldMapFunction · 0.85
jiraDefaultFieldMapFunction · 0.85

Tested by

no test coverage detected