tasks

package
v0.11.0-test7 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BatchSize = 1000
)
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 added in v0.4.0

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

func CollectSprints added in v0.10.0

func CollectSprints(taskCtx core.SubTaskContext) error

func CollectUsers added in v0.4.0

func CollectUsers(taskCtx core.SubTaskContext) error

func CollectWorklogs added in v0.10.0

func CollectWorklogs(taskCtx core.SubTaskContext) error

func ConvertBoard added in v0.6.0

func ConvertBoard(taskCtx core.SubTaskContext) error

func ConvertChangelogs added in v0.6.0

func ConvertChangelogs(taskCtx core.SubTaskContext) error

func ConvertIssueCommits added in v0.6.0

func ConvertIssueCommits(taskCtx core.SubTaskContext) error

func ConvertIssueRepoCommits added in v0.10.0

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 added in v0.6.0

func ConvertIssues(taskCtx core.SubTaskContext) error

func ConvertSprints added in v0.10.0

func ConvertSprints(taskCtx core.SubTaskContext) error

func ConvertUsers added in v0.6.0

func ConvertUsers(taskCtx core.SubTaskContext) error

func ConvertWorklogs added in v0.10.0

func ConvertWorklogs(taskCtx core.SubTaskContext) error

func ExtractBoard added in v0.10.0

func ExtractBoard(taskCtx core.SubTaskContext) error

func ExtractChangelogs added in v0.10.0

func ExtractChangelogs(taskCtx core.SubTaskContext) error

func ExtractIssues added in v0.10.0

func ExtractIssues(taskCtx core.SubTaskContext) error

func ExtractProjects added in v0.10.0

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

func ExtractSprints added in v0.10.0

func ExtractSprints(taskCtx core.SubTaskContext) error

func ExtractUsers added in v0.10.0

func ExtractUsers(taskCtx core.SubTaskContext) error

func ExtractWorklogs added in v0.10.0

func ExtractWorklogs(taskCtx core.SubTaskContext) error

func GetJiraServerInfo added in v0.10.0

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

func GetTotalPagesFromResponse added in v0.10.0

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

func NewJiraApiClient added in v0.4.0

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

Types

type ChangelogItemResult added in v0.6.0

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

type JiraApiParams added in v0.10.0

type JiraApiParams struct {
	ConnectionId uint64
	BoardId      uint64
}

this struct should be moved to `jira_api_common.go`

type JiraOptions added in v0.10.0

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 added in v0.10.0

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

type SprintIssuesConverter added in v0.7.0

type SprintIssuesConverter struct {
	// contains filtered or unexported fields
}

func NewSprintIssueConverter added in v0.7.0

func NewSprintIssueConverter(taskCtx core.SubTaskContext) (*SprintIssuesConverter, error)

func (*SprintIssuesConverter) CreateSprintIssue

func (c *SprintIssuesConverter) CreateSprintIssue() error

func (*SprintIssuesConverter) FeedIn added in v0.7.0

func (c *SprintIssuesConverter) FeedIn(connectionId uint64, cl ChangelogItemResult)

func (*SprintIssuesConverter) SaveAssigneeHistory

func (c *SprintIssuesConverter) SaveAssigneeHistory() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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