tasks

package
v0.12.0-k8s-deployment... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

View Source
const RAW_BOARD_TABLE = "jira_api_boards"
View Source
const RAW_CHANGELOG_TABLE = "jira_api_issue_changelogs"
View Source
const RAW_ISSUE_TABLE = "jira_api_issues"
View Source
const RAW_PROJECT_TABLE = "jira_api_projects"
View Source
const RAW_REMOTELINK_TABLE = "jira_api_remotelinks"
View Source
const RAW_SPRINT_TABLE = "jira_api_sprints"
View Source
const RAW_STATUS_TABLE = "jira_api_status"
View Source
const RAW_USERS_TABLE = "jira_api_users"
View Source
const RAW_WORKLOGS_TABLE = "jira_api_worklogs"

Variables

View Source
var CollectAccountsMeta = core.SubTaskMeta{
	Name:             "collectAccounts",
	EntryPoint:       CollectAccounts,
	EnabledByDefault: true,
	Description:      "collect Jira accounts",
	DomainTypes:      []string{core.DOMAIN_TYPE_CROSS},
}
View Source
var CollectBoardMeta = core.SubTaskMeta{
	Name:             "collectBoard",
	EntryPoint:       CollectBoard,
	EnabledByDefault: true,
	Description:      "collect Jira board",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var CollectIssueChangelogsMeta = core.SubTaskMeta{
	Name:             "collectIssueChangelogs",
	EntryPoint:       CollectIssueChangelogs,
	EnabledByDefault: true,
	Description:      "collect Jira Issue change logs",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var CollectIssuesMeta = core.SubTaskMeta{
	Name:             "collectIssues",
	EntryPoint:       CollectIssues,
	EnabledByDefault: true,
	Description:      "collect Jira issues",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var CollectProjectsMeta = core.SubTaskMeta{
	Name:             "collectProjects",
	EntryPoint:       CollectProjects,
	EnabledByDefault: true,
	Description:      "collect Jira projects",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var CollectRemotelinksMeta = core.SubTaskMeta{
	Name:             "collectRemotelinks",
	EntryPoint:       CollectRemotelinks,
	EnabledByDefault: true,
	Description:      "collect Jira remote links",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var CollectSprintsMeta = core.SubTaskMeta{
	Name:             "collectSprints",
	EntryPoint:       CollectSprints,
	EnabledByDefault: true,
	Description:      "collect Jira sprints",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var CollectStatusMeta = core.SubTaskMeta{
	Name:             "collectStatus",
	EntryPoint:       CollectStatus,
	EnabledByDefault: true,
	Description:      "collect Jira status",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var CollectWorklogsMeta = core.SubTaskMeta{
	Name:             "collectWorklogs",
	EntryPoint:       CollectWorklogs,
	EnabledByDefault: true,
	Description:      "collect Jira work logs",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertAccountsMeta = core.SubTaskMeta{
	Name:             "convertAccounts",
	EntryPoint:       ConvertAccounts,
	EnabledByDefault: true,
	Description:      "convert Jira accounts",
	DomainTypes:      []string{core.DOMAIN_TYPE_CROSS},
}
View Source
var ConvertBoardMeta = core.SubTaskMeta{
	Name:             "convertBoard",
	EntryPoint:       ConvertBoard,
	EnabledByDefault: true,
	Description:      "convert Jira board",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertIssueChangelogsMeta = core.SubTaskMeta{
	Name:             "convertIssueChangelogs",
	EntryPoint:       ConvertIssueChangelogs,
	EnabledByDefault: true,
	Description:      "convert Jira Issue change logs",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertIssueCommitsMeta = core.SubTaskMeta{
	Name:             "convertIssueCommits",
	EntryPoint:       ConvertIssueCommits,
	EnabledByDefault: true,
	Description:      "convert Jira issue commits",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertIssueRepoCommitsMeta = core.SubTaskMeta{
	Name:             "convertIssueRepoCommits",
	EntryPoint:       ConvertIssueRepoCommits,
	EnabledByDefault: false,
	Description:      "convert Jira issue repo commits",
	DomainTypes:      []string{core.DOMAIN_TYPE_CROSS},
}
View Source
var ConvertIssuesMeta = core.SubTaskMeta{
	Name:             "convertIssues",
	EntryPoint:       ConvertIssues,
	EnabledByDefault: true,
	Description:      "convert Jira issues",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertSprintIssuesMeta = core.SubTaskMeta{
	Name:             "convertSprintIssues",
	EntryPoint:       ConvertSprintIssues,
	EnabledByDefault: true,
	Description:      "convert Jira sprint_issues",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertSprintsMeta = core.SubTaskMeta{
	Name:             "convertSprints",
	EntryPoint:       ConvertSprints,
	EnabledByDefault: true,
	Description:      "convert Jira sprints",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertWorklogsMeta = core.SubTaskMeta{
	Name:             "convertWorklogs",
	EntryPoint:       ConvertWorklogs,
	EnabledByDefault: true,
	Description:      "convert Jira work logs",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractAccountsMeta = core.SubTaskMeta{
	Name:             "extractAccounts",
	EntryPoint:       ExtractAccounts,
	EnabledByDefault: true,
	Description:      "extract Jira users",
	DomainTypes:      []string{core.DOMAIN_TYPE_CROSS},
}
View Source
var ExtractBoardMeta = core.SubTaskMeta{Name: "extractBoard",
	EntryPoint:       ExtractBoard,
	EnabledByDefault: true,
	Description:      "extract Jira board",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractIssueChangelogsMeta = core.SubTaskMeta{
	Name:             "extractIssueChangelogs",
	EntryPoint:       ExtractIssueChangelogs,
	EnabledByDefault: true,
	Description:      "extract Jira Issue change logs",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractIssuesMeta = core.SubTaskMeta{
	Name:             "extractIssues",
	EntryPoint:       ExtractIssues,
	EnabledByDefault: true,
	Description:      "extract Jira issues",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractProjectsMeta = core.SubTaskMeta{
	Name:             "extractProjects",
	EntryPoint:       ExtractProjects,
	EnabledByDefault: true,
	Description:      "extract Jira projects",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractRemotelinksMeta = core.SubTaskMeta{
	Name:             "extractRemotelinks",
	EntryPoint:       ExtractRemotelinks,
	EnabledByDefault: true,
	Description:      "extract Jira remote links",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractSprintsMeta = core.SubTaskMeta{
	Name:             "extractSprints",
	EntryPoint:       ExtractSprints,
	EnabledByDefault: true,
	Description:      "extract Jira sprints",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractStatusMeta = core.SubTaskMeta{
	Name:             "extractStatus",
	EntryPoint:       ExtractStatus,
	EnabledByDefault: true,
	Description:      "extract Jira status",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractWorklogsMeta = core.SubTaskMeta{
	Name:             "extractWorklogs",
	EntryPoint:       ExtractWorklogs,
	EnabledByDefault: true,
	Description:      "extract Jira work logs",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}

Functions

func CollectAccounts added in v0.12.0

func CollectAccounts(taskCtx core.SubTaskContext) error

func CollectBoard

func CollectBoard(taskCtx core.SubTaskContext) error

func CollectIssueChangelogs added in v0.12.0

func CollectIssueChangelogs(taskCtx core.SubTaskContext) error

func CollectIssues

func CollectIssues(taskCtx core.SubTaskContext) error

func CollectProjects

func CollectProjects(taskCtx core.SubTaskContext) error
func CollectRemotelinks(taskCtx core.SubTaskContext) error

func CollectSprints

func CollectSprints(taskCtx core.SubTaskContext) error

func CollectStatus

func CollectStatus(taskCtx core.SubTaskContext) error

func CollectWorklogs

func CollectWorklogs(taskCtx core.SubTaskContext) error

func ConvertAccounts added in v0.12.0

func ConvertAccounts(taskCtx core.SubTaskContext) error

func ConvertBoard

func ConvertBoard(taskCtx core.SubTaskContext) error

func ConvertIssueChangelogs added in v0.12.0

func ConvertIssueChangelogs(taskCtx core.SubTaskContext) error

func ConvertIssueCommits

func ConvertIssueCommits(taskCtx core.SubTaskContext) error

func ConvertIssueRepoCommits

func ConvertIssueRepoCommits(taskCtx core.SubTaskContext) error

ConvertIssueRepoCommits is to extract issue_repo_commits from jira_issue_commits, nothing difference with issue_commits but added a RepoUrl. This task is needed by EE group.

func ConvertIssues

func ConvertIssues(taskCtx core.SubTaskContext) error

func ConvertSprintIssues

func ConvertSprintIssues(taskCtx core.SubTaskContext) error

func ConvertSprints

func ConvertSprints(taskCtx core.SubTaskContext) error

func ConvertWorklogs

func ConvertWorklogs(taskCtx core.SubTaskContext) error

func ExtractAccounts added in v0.12.0

func ExtractAccounts(taskCtx core.SubTaskContext) error

func ExtractBoard

func ExtractBoard(taskCtx core.SubTaskContext) error

func ExtractIssueChangelogs added in v0.12.0

func ExtractIssueChangelogs(taskCtx core.SubTaskContext) error

func ExtractIssues

func ExtractIssues(taskCtx core.SubTaskContext) error

func ExtractProjects

func ExtractProjects(taskCtx core.SubTaskContext) error
func ExtractRemotelinks(taskCtx core.SubTaskContext) error

func ExtractSprints

func ExtractSprints(taskCtx core.SubTaskContext) error

func ExtractStatus

func ExtractStatus(taskCtx core.SubTaskContext) error

func ExtractWorklogs

func ExtractWorklogs(taskCtx core.SubTaskContext) error

func GetJiraServerInfo

func GetJiraServerInfo(client *helper.ApiAsyncClient) (*models.JiraServerInfo, int, error)

func GetTotalPagesFromResponse

func GetTotalPagesFromResponse(res *http.Response, args *helper.ApiCollectorArgs) (int, error)

func NewJiraApiClient

func NewJiraApiClient(taskCtx core.TaskContext, connection *models.JiraConnection) (*helper.ApiAsyncClient, error)

Types

type IssueChangelogItemResult added in v0.12.0

type IssueChangelogItemResult struct {
	models.JiraIssueChangelogItems
	IssueId           uint64 `gorm:"index"`
	AuthorAccountId   string
	AuthorDisplayName string
	Created           time.Time
}

type JiraApiParams

type JiraApiParams struct {
	ConnectionId uint64
	BoardId      uint64
}

this struct should be moved to `jira_api_common.go`

type JiraOptions

type JiraOptions struct {
	ConnectionId        uint64 `json:"connectionId"`
	BoardId             uint64 `json:"boardId"`
	Since               string
	TransformationRules TransformationRules `json:"transformationRules"`
}

func DecodeAndValidateTaskOptions added in v0.12.0

func DecodeAndValidateTaskOptions(options map[string]interface{}) (*JiraOptions, error)

type JiraPagination

type JiraPagination struct {
	StartAt    int `json:"startAt"`
	MaxResults int `json:"maxResults"`
	Total      int `json:"total"`
}

type JiraTaskData

type JiraTaskData struct {
	Options        *JiraOptions
	ApiClient      *helper.ApiAsyncClient
	Since          *time.Time
	JiraServerInfo models.JiraServerInfo
}

type TransformationRules added in v0.12.0

type TransformationRules struct {
	RequirementTypeMapping     []string
	BugTypeMapping             []string
	IncidentTypeMapping        []string
	EpicKeyField               string
	StoryPointField            string
	RemotelinkCommitShaPattern string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL