tasks

package
v0.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

View Source
const RAW_BOARD_TABLE = "jira_api_boards"
View Source
const RAW_CHANGELOG_TABLE = "jira_api_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_USERS_TABLE = "jira_api_users"
View Source
const RAW_WORKLOGS_TABLE = "jira_api_worklogs"

Variables

This section is empty.

Functions

func CollectBoard

func CollectBoard(taskCtx core.SubTaskContext) error

func CollectChangelogs

func CollectChangelogs(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 CollectUsers

func CollectUsers(taskCtx core.SubTaskContext) error

func CollectWorklogs

func CollectWorklogs(taskCtx core.SubTaskContext) error

func ConvertBoard

func ConvertBoard(taskCtx core.SubTaskContext) error

func ConvertChangelogs

func ConvertChangelogs(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 ConvertUsers

func ConvertUsers(taskCtx core.SubTaskContext) error

func ConvertWorklogs

func ConvertWorklogs(taskCtx core.SubTaskContext) error

func ExtractBoard

func ExtractBoard(taskCtx core.SubTaskContext) error

func ExtractChangelogs

func ExtractChangelogs(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 ExtractUsers

func ExtractUsers(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 ChangelogItemResult

type ChangelogItemResult struct {
	models.JiraChangelogItem
	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"`
	Tasks        []string `json:"tasks,omitempty"`
	Since        string
}

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
	Connection     *models.JiraConnection
	Since          *time.Time
	JiraServerInfo models.JiraServerInfo
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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