Documentation ¶
Index ¶
- Constants
- Variables
- func CollectAccounts(taskCtx plugin.SubTaskContext) errors.Error
- func CollectProjects(taskCtx plugin.SubTaskContext) errors.Error
- func CollectSprints(taskCtx plugin.SubTaskContext) errors.Error
- func CollectTaskActivities(taskCtx plugin.SubTaskContext) errors.Error
- func CollectTaskFlowStatus(taskCtx plugin.SubTaskContext) errors.Error
- func CollectTaskScenarios(taskCtx plugin.SubTaskContext) errors.Error
- func CollectTaskTags(taskCtx plugin.SubTaskContext) errors.Error
- func CollectTaskWorktime(taskCtx plugin.SubTaskContext) errors.Error
- func CollectTasks(taskCtx plugin.SubTaskContext) errors.Error
- func ConvertAccounts(taskCtx plugin.SubTaskContext) errors.Error
- func ConvertProjects(taskCtx plugin.SubTaskContext) errors.Error
- func ConvertSprints(taskCtx plugin.SubTaskContext) errors.Error
- func ConvertTaskChangelog(taskCtx plugin.SubTaskContext) errors.Error
- func ConvertTaskComments(taskCtx plugin.SubTaskContext) errors.Error
- func ConvertTaskTagTasks(taskCtx plugin.SubTaskContext) errors.Error
- func ConvertTaskWorktime(taskCtx plugin.SubTaskContext) errors.Error
- func ConvertTasks(taskCtx plugin.SubTaskContext) errors.Error
- func ExtractAccounts(taskCtx plugin.SubTaskContext) errors.Error
- func ExtractProjects(taskCtx plugin.SubTaskContext) errors.Error
- func ExtractSprints(taskCtx plugin.SubTaskContext) errors.Error
- func ExtractTaskActivities(taskCtx plugin.SubTaskContext) errors.Error
- func ExtractTaskFlowStatus(taskCtx plugin.SubTaskContext) errors.Error
- func ExtractTaskScenarios(taskCtx plugin.SubTaskContext) errors.Error
- func ExtractTaskTags(taskCtx plugin.SubTaskContext) errors.Error
- func ExtractTaskWorktime(taskCtx plugin.SubTaskContext) errors.Error
- func ExtractTasks(taskCtx plugin.SubTaskContext) errors.Error
- func FindAccountById(db dal.Dal, accountId string) (*models.TeambitionAccount, errors.Error)
- func FindProjectById(db dal.Dal, projectId string) (*models.TeambitionProject, errors.Error)
- func FindTaskFlowStatusById(db dal.Dal, id string) (*models.TeambitionTaskFlowStatus, errors.Error)
- func FindTaskScenarioById(db dal.Dal, scenarioId string) (*models.TeambitionTaskScenario, errors.Error)
- func NewTeambitionApiClient(taskCtx plugin.TaskContext, connection *models.TeambitionConnection) (*api.ApiAsyncClient, errors.Error)
- type OriginalStatus
- type StatusMappings
- type TeambitionApiParams
- type TeambitionComRes
- type TeambitionOptions
- type TeambitionTaskData
- type TransformationRules
- type TypeMapping
- type TypeMappings
Constants ¶
View Source
const RAW_PROJECT_TABLE = "teambition_api_projects"
View Source
const RAW_SPRINT_TABLE = "teambition_api_sprints"
View Source
const RAW_TASK_ACTIVITY_TABLE = "teambition_api_task_activities"
View Source
const RAW_TASK_FLOW_STATUS_TABLE = "teambition_api_task_flow_status"
View Source
const RAW_TASK_SCENARIOS_TABLE = "teambition_api_task_scenarios"
View Source
const RAW_TASK_TABLE = "teambition_api_tasks"
View Source
const RAW_TASK_TAG_TABLE = "teambition_api_task_tags"
View Source
const RAW_TASK_WORKTIME_TABLE = "teambition_api_task_worktime"
View Source
const RAW_USER_TABLE = "teambition_api_users"
Variables ¶
View Source
var CollectAccountsMeta = plugin.SubTaskMeta{ Name: "collectAccounts", EntryPoint: CollectAccounts, EnabledByDefault: true, Description: "collect teambition accounts", DomainTypes: []string{plugin.DOMAIN_TYPE_CROSS}, }
View Source
var CollectProjectsMeta = plugin.SubTaskMeta{ Name: "collectProjects", EntryPoint: CollectProjects, EnabledByDefault: true, Description: "collect teambition projects", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var CollectSprintsMeta = plugin.SubTaskMeta{ Name: "collectSprints", EntryPoint: CollectSprints, EnabledByDefault: true, Description: "collect teambition sprints", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var CollectTaskActivitiesMeta = plugin.SubTaskMeta{ Name: "collectTaskActivities", EntryPoint: CollectTaskActivities, EnabledByDefault: true, Description: "collect teambition task activities", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var CollectTaskFlowStatusMeta = plugin.SubTaskMeta{ Name: "collect task flow status", EntryPoint: CollectTaskFlowStatus, EnabledByDefault: true, Description: "collect teambition task flow status", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var CollectTaskScenariosMeta = plugin.SubTaskMeta{ Name: "collect task flow status", EntryPoint: CollectTaskScenarios, EnabledByDefault: true, Description: "collect teambition task flow scenarios", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var CollectTaskTagsMeta = plugin.SubTaskMeta{ Name: "collectTaskTags", EntryPoint: CollectTaskTags, EnabledByDefault: true, Description: "collect teambition task tags", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var CollectTaskWorktimeMeta = plugin.SubTaskMeta{ Name: "collectTaskWorktime", EntryPoint: CollectTaskWorktime, EnabledByDefault: true, Description: "collect teambition task worktime", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var CollectTasksMeta = plugin.SubTaskMeta{ Name: "collectTasks", EntryPoint: CollectTasks, EnabledByDefault: true, Description: "collect teambition accounts", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ConvertAccountsMeta = plugin.SubTaskMeta{ Name: "convertAccounts", EntryPoint: ConvertAccounts, EnabledByDefault: true, Description: "convert teambition account", DomainTypes: []string{plugin.DOMAIN_TYPE_CROSS}, }
View Source
var ConvertProjectsMeta = plugin.SubTaskMeta{ Name: "convertAccounts", EntryPoint: ConvertProjects, EnabledByDefault: true, Description: "convert teambition projects", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ConvertSprintsMeta = plugin.SubTaskMeta{ Name: "convertSprints", EntryPoint: ConvertSprints, EnabledByDefault: true, Description: "convert teambition projects", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ConvertTaskChangelogMeta = plugin.SubTaskMeta{ Name: "convertTaskChangelog", EntryPoint: ConvertTaskChangelog, EnabledByDefault: true, Description: "convert teambition task changelogs", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ConvertTaskCommentsMeta = plugin.SubTaskMeta{ Name: "convertTaskComments", EntryPoint: ConvertTaskComments, EnabledByDefault: true, Description: "convert teambition task comments", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ConvertTaskTagTasksMeta = plugin.SubTaskMeta{ Name: "convertTaskTags", EntryPoint: ConvertTaskTagTasks, EnabledByDefault: true, Description: "convert teambition task tags", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ConvertTaskWorktimeMeta = plugin.SubTaskMeta{ Name: "convertTaskWorktime", EntryPoint: ConvertTaskWorktime, EnabledByDefault: true, Description: "convert teambition task worktime", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ConvertTasksMeta = plugin.SubTaskMeta{ Name: "convertTasks", EntryPoint: ConvertTasks, EnabledByDefault: true, Description: "convert teambition account", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ExtractAccountsMeta = plugin.SubTaskMeta{ Name: "extractAccounts", EntryPoint: ExtractAccounts, EnabledByDefault: true, Description: "Extract raw workspace data into tool layer table _tool_teambition_accounts", DomainTypes: []string{plugin.DOMAIN_TYPE_CROSS}, }
View Source
var ExtractProjectsMeta = plugin.SubTaskMeta{ Name: "extractProjects", EntryPoint: ExtractProjects, EnabledByDefault: true, Description: "Extract raw data into tool layer table _tool_teambition_projects", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ExtractSprintsMeta = plugin.SubTaskMeta{ Name: "extractSprints", EntryPoint: ExtractSprints, EnabledByDefault: true, Description: "Extract raw data into tool layer table _tool_teambition_sprints", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ExtractTaskActivitiesMeta = plugin.SubTaskMeta{ Name: "extractTaskActivities", EntryPoint: ExtractTaskActivities, EnabledByDefault: true, Description: "Extract raw company data into tool layer table _tool_teambition_task_activities", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ExtractTaskFlowStatusMeta = plugin.SubTaskMeta{ Name: "extractTaskWorkFlowStatus", EntryPoint: ExtractTaskFlowStatus, EnabledByDefault: true, Description: "Extract raw data into tool layer table _tool_teambition_task_work_flow_status", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ExtractTaskScenariosMeta = plugin.SubTaskMeta{ Name: "extractTaskScenarios", EntryPoint: ExtractTaskScenarios, EnabledByDefault: true, Description: "Extract raw data into tool layer table _tool_teambition_task_scenarios", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ExtractTaskTagsMeta = plugin.SubTaskMeta{ Name: "extractTaskTags", EntryPoint: ExtractTaskTags, EnabledByDefault: true, Description: "Extract raw data into tool layer table _tool_teambition_task_tags", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ExtractTaskWorktimeMeta = plugin.SubTaskMeta{ Name: "extractTaskWorktime", EntryPoint: ExtractTaskWorktime, EnabledByDefault: true, Description: "Extract raw company data into tool layer table _tool_teambition_task_worktime", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
View Source
var ExtractTasksMeta = plugin.SubTaskMeta{ Name: "extractTasks", EntryPoint: ExtractTasks, EnabledByDefault: true, Description: "Extract raw data into tool layer table _tool_teambition_tasks", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, }
Functions ¶
func CollectAccounts ¶
func CollectAccounts(taskCtx plugin.SubTaskContext) errors.Error
func CollectProjects ¶
func CollectProjects(taskCtx plugin.SubTaskContext) errors.Error
func CollectSprints ¶
func CollectSprints(taskCtx plugin.SubTaskContext) errors.Error
func CollectTaskActivities ¶
func CollectTaskActivities(taskCtx plugin.SubTaskContext) errors.Error
func CollectTaskFlowStatus ¶
func CollectTaskFlowStatus(taskCtx plugin.SubTaskContext) errors.Error
func CollectTaskScenarios ¶
func CollectTaskScenarios(taskCtx plugin.SubTaskContext) errors.Error
func CollectTaskTags ¶
func CollectTaskTags(taskCtx plugin.SubTaskContext) errors.Error
func CollectTaskWorktime ¶
func CollectTaskWorktime(taskCtx plugin.SubTaskContext) errors.Error
func CollectTasks ¶
func CollectTasks(taskCtx plugin.SubTaskContext) errors.Error
func ConvertAccounts ¶
func ConvertAccounts(taskCtx plugin.SubTaskContext) errors.Error
func ConvertProjects ¶
func ConvertProjects(taskCtx plugin.SubTaskContext) errors.Error
func ConvertSprints ¶
func ConvertSprints(taskCtx plugin.SubTaskContext) errors.Error
func ConvertTaskChangelog ¶
func ConvertTaskChangelog(taskCtx plugin.SubTaskContext) errors.Error
func ConvertTaskComments ¶
func ConvertTaskComments(taskCtx plugin.SubTaskContext) errors.Error
func ConvertTaskTagTasks ¶
func ConvertTaskTagTasks(taskCtx plugin.SubTaskContext) errors.Error
func ConvertTaskWorktime ¶
func ConvertTaskWorktime(taskCtx plugin.SubTaskContext) errors.Error
func ConvertTasks ¶
func ConvertTasks(taskCtx plugin.SubTaskContext) errors.Error
func ExtractAccounts ¶
func ExtractAccounts(taskCtx plugin.SubTaskContext) errors.Error
func ExtractProjects ¶
func ExtractProjects(taskCtx plugin.SubTaskContext) errors.Error
func ExtractSprints ¶
func ExtractSprints(taskCtx plugin.SubTaskContext) errors.Error
func ExtractTaskActivities ¶
func ExtractTaskActivities(taskCtx plugin.SubTaskContext) errors.Error
func ExtractTaskFlowStatus ¶
func ExtractTaskFlowStatus(taskCtx plugin.SubTaskContext) errors.Error
func ExtractTaskScenarios ¶
func ExtractTaskScenarios(taskCtx plugin.SubTaskContext) errors.Error
func ExtractTaskTags ¶
func ExtractTaskTags(taskCtx plugin.SubTaskContext) errors.Error
func ExtractTaskWorktime ¶
func ExtractTaskWorktime(taskCtx plugin.SubTaskContext) errors.Error
func ExtractTasks ¶
func ExtractTasks(taskCtx plugin.SubTaskContext) errors.Error
func FindAccountById ¶
func FindProjectById ¶
func FindTaskFlowStatusById ¶
func FindTaskScenarioById ¶
func NewTeambitionApiClient ¶
func NewTeambitionApiClient(taskCtx plugin.TaskContext, connection *models.TeambitionConnection) (*api.ApiAsyncClient, errors.Error)
Types ¶
type OriginalStatus ¶
type OriginalStatus []string
type StatusMappings ¶
type StatusMappings map[string]OriginalStatus
type TeambitionApiParams ¶
type TeambitionComRes ¶
type TeambitionOptions ¶
type TeambitionOptions struct { ConnectionId uint64 `json:"connectionId"` ProjectId string `json:"projectId"` PageSize uint64 `mapstruct:"pageSize"` TimeAfter string `json:"timeAfter" mapstructure:"timeAfter,omitempty"` CstZone *time.Location TransformationRules TransformationRules `json:"transformationRules"` }
func DecodeAndValidateTaskOptions ¶
func DecodeAndValidateTaskOptions(options map[string]interface{}) (*TeambitionOptions, errors.Error)
type TeambitionTaskData ¶
type TeambitionTaskData struct { Options *TeambitionOptions ApiClient *helper.ApiAsyncClient TimeAfter *time.Time TenantId string }
func CreateRawDataSubTaskArgs ¶
func CreateRawDataSubTaskArgs(taskCtx plugin.SubTaskContext, rawTable string) (*api.RawDataSubTaskArgs, *TeambitionTaskData)
type TransformationRules ¶
type TransformationRules struct { TypeMappings TypeMappings `json:"typeMappings"` StatusMappings StatusMappings `json:"statusMappings"` }
type TypeMapping ¶
type TypeMapping struct {
StandardType string `json:"standardType"`
}
type TypeMappings ¶
type TypeMappings map[string]TypeMapping
Source Files ¶
- account_collector.go
- account_converter.go
- account_extractor.go
- api_client.go
- project_collector.go
- project_convertor.go
- project_extractor.go
- shared.go
- sprint_collector.go
- sprint_convertor.go
- sprint_extractor.go
- task_activity_collector.go
- task_activity_extractor.go
- task_changelog_converter.go
- task_collector.go
- task_comment_converter.go
- task_converter.go
- task_data.go
- task_extractor.go
- task_flow_status_collector.go
- task_flow_status_extractor.go
- task_scenario_collector.go
- task_scenario_extractor.go
- task_tag_collector.go
- task_tag_extractor.go
- task_tag_task_converter.go
- task_worktime_collector.go
- task_worktime_converter.go
- task_worktime_extractor.go
Click to show internal directories.
Click to hide internal directories.