Documentation ¶
Index ¶
- func AddWorklog(key string, min uint64, com string, date string, time string) (models.WorklogResp, error)
- func CreateFixVersion(projectKey string, version string, createDeploymentIssue bool, summary string, ...) error
- func CreateIssue(projectKey string, summary string, description string, issueType string, ...) (models.Issue, error)
- func CreateVersion(projectKey string, version string) (createdVersion models.Version, created bool, err error)
- func DeleteWorklog(key string, id string) (status int, error error)
- func DeleteWorklogForUser(user string, key string) (sumOk int, sumError int, error error)
- func GetIssue(issueKey string) (i models.Issue, error error)
- func GetIssueWorkflow(issueKey string) (*models.Workflow, error)
- func GetIssueWorkflowName(issueKey string) (name string, error error)
- func GetIssues(issueKeys []string) []models.Issue
- func GetIssuesInVersions(projectKey string, version string, issueTypes string) (issuesInVersionList models.IssueList, error error)
- func GetProject(projectKey string) models.Project
- func GetProjects() []models.Project
- func GetTransitionByName(issueKey string, transitionName string) (models.Transition, error)
- func GetTransitions(issueKey string) []models.Transition
- func GetVersion(projectKey string, version string) (models.Version, error)
- func GetVersions(projectKey string) []models.Version
- func Initialize(serverUrl string, username string, password string)
- func ListWorklog(key string) (worklogs models.WorklogList, error error)
- func ReleaseVersion(projectKey string, version string)
- func SetFixVersion(issueKey string, version string) error
- func TestTransitions(workflowPath string, issueKey string) error
- func TransitionIssue(workflowPath string, issueKey string, targetStatus string, ...) (status int, error error)
- type WorkflowTransitionsMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWorklog ¶
func AddWorklog(key string, min uint64, com string, date string, time string) (models.WorklogResp, error)
Worklog method add worklog to issue
func CreateFixVersion ¶
func CreateIssue ¶
func CreateVersion ¶
func CreateVersion(projectKey string, version string) (createdVersion models.Version, created bool, err error)
CreateVersion creates new version in specified project
func DeleteWorklog ¶
Delete specified worklog (id) from JIRA issue (key)
func DeleteWorklogForUser ¶
DeleteWorklogForUser get worklogs form given issue, filter for given user and delete all worklogs
func GetIssueWorkflow ¶
GetIssueWorkflow method returns issue details
func GetIssueWorkflowName ¶
GetIssueWorkflow method returns issue details
func GetIssuesInVersions ¶
func GetProject ¶
GetProject method returns project details
func GetTransitionByName ¶
func GetTransitionByName(issueKey string, transitionName string) (models.Transition, error)
GetTransitionByName method returns transition details from issue
func GetTransitions ¶
func GetTransitions(issueKey string) []models.Transition
GetTransitions method returns available transitions for issue
func GetVersion ¶
GetVersion method returns JIRA version details
func GetVersions ¶
GetVersions method returns JIRA versions of given project
func Initialize ¶
Initialize method is used to initialize API client
func ListWorklog ¶
func ListWorklog(key string) (worklogs models.WorklogList, error error)
ListWorklog for specified JIRa issue
func ReleaseVersion ¶
ReleaseVersion method changes project status to "released"
func SetFixVersion ¶
SetFixVersion method sets fix version of issue. When version is already set it won't be modified
func TestTransitions ¶
TestTransitions method run through all transitions to test Workflow definition
Types ¶
type WorkflowTransitionsMap ¶
type WorkflowTransitionsMap struct {
Workflow map[string]interface{}
}
func BuildWorkflow ¶
func BuildWorkflow(workflow *models.Workflow, sourceStatus string, targetStatus string) *WorkflowTransitionsMap
func ReadWorkflow ¶
func ReadWorkflow(workflowPath string) (WorkflowTransitionsMap, error)
ReadWorkflow method loads Workflow definition from env var, http url or file
func (WorkflowTransitionsMap) GetOrDefault ¶
func (workflow WorkflowTransitionsMap) GetOrDefault(currentStatus string, targetStatus string) (string, error)