atlassian

package
v0.0.0-...-09eb631 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustSetupConfluence

func MustSetupConfluence(cfg *core.Configuration)

func MustSetupJIRA

func MustSetupJIRA(cfg *core.Configuration)

Types

type Confluence

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

func MustInitConfluence

func MustInitConfluence(cfg *core.Configuration) *Confluence

func (*Confluence) Search

func (c *Confluence) Search(cql string) []SearchResult

func (*Confluence) SearchAndOpen

func (c *Confluence) SearchAndOpen(isCQL bool, cql ...string) error

func (*Confluence) SearchAndReplace

func (c *Confluence) SearchAndReplace(cql, old, new string, noop bool) error

func (*Confluence) UpdateDocumentation

func (c *Confluence) UpdateDocumentation(m *core.Manifest) error

type JIRA

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

func MustInitJIRA

func MustInitJIRA(cfg *core.Configuration) *JIRA

func (*JIRA) ClaimIssueInActiveSprint

func (j *JIRA) ClaimIssueInActiveSprint(key string) error

func (*JIRA) CommentOnIssue

func (j *JIRA) CommentOnIssue(key, body string) error

func (*JIRA) CreateBranchFromAssignedIssue

func (j *JIRA) CreateBranchFromAssignedIssue() error

func (*JIRA) CreateBranchFromIssue

func (j *JIRA) CreateBranchFromIssue(issue *jira.Issue, repoDir string, forceNewBranch bool) error

func (*JIRA) CreateIssue

func (j *JIRA) CreateIssue(project, summary, description, transition string, reactive, claim bool) error

func (*JIRA) IsEnabled

func (j *JIRA) IsEnabled() bool

func (*JIRA) ListAssignedIssues

func (j *JIRA) ListAssignedIssues(showDescription bool) error

func (*JIRA) ListWorkDay

func (j *JIRA) ListWorkDay(date, prefix string, orgFormat bool) error

func (*JIRA) MoveIssueToCurrentSprint

func (j *JIRA) MoveIssueToCurrentSprint(i *jira.Issue) error

func (*JIRA) OpenIssue

func (j *JIRA) OpenIssue(key string, browser bool) error

func (*JIRA) OpenIssueFromKey

func (j *JIRA) OpenIssueFromKey(key string, useBee bool) error

func (*JIRA) OpenRecentlyAccessedIssues

func (j *JIRA) OpenRecentlyAccessedIssues(useBee bool) error

func (*JIRA) PickAssignedIssue

func (j *JIRA) PickAssignedIssue() (*jira.Issue, error)

func (*JIRA) SearchIssueJQL

func (j *JIRA) SearchIssueJQL(jql string, useBee bool) error

func (*JIRA) SearchIssueText

func (j *JIRA) SearchIssueText(text, project string, resolved, useBee bool) error

func (*JIRA) SearchText

func (j *JIRA) SearchText(text, project string, resolved bool) ([]jira.Issue, error)

func (*JIRA) TransitionIssue

func (j *JIRA) TransitionIssue(key, transitionName string) (err error)

func (*JIRA) ViewIssue

func (j *JIRA) ViewIssue(key string) error

type PageBody

type PageBody struct {
	Storage PageBodyValue `json:"storage"`
}

type PageBodyValue

type PageBodyValue struct {
	Value string `json:"value"`
}

type PageInfo

type PageInfo struct {
	Title string   `json:"title"`
	Body  PageBody `json:"body"`

	Version struct {
		Number int64 `json:"number"`
	} `json:"version"`

	Ancestors []struct {
		Id string `json:"id"`
	} `json:"ancestors"`
}

type SearchResult

type SearchResult struct {
	ID         string `json:"id"`
	Type       string `json:"type"`
	Status     string `json:"status"`
	Title      string `json:"title"`
	ChildTypes struct {
	} `json:"childTypes"`
	Restrictions struct {
	} `json:"restrictions"`
	Expandable struct {
		Container   string `json:"container"`
		Metadata    string `json:"metadata"`
		Extensions  string `json:"extensions"`
		Operations  string `json:"operations"`
		Children    string `json:"children"`
		History     string `json:"history"`
		Ancestors   string `json:"ancestors"`
		Body        string `json:"body"`
		Version     string `json:"version"`
		Descendants string `json:"descendants"`
		Space       string `json:"space"`
	} `json:"_expandable"`
	Links struct {
		Webui  string `json:"webui"`
		Self   string `json:"self"`
		Tinyui string `json:"tinyui"`
	} `json:"_links"`
}

type SearchResults

type SearchResults struct {
	Results []SearchResult `json:"results"`
	Start   int            `json:"start"`
	Limit   int            `json:"limit"`
	Size    int            `json:"size"`
	Links   struct {
		Base    string `json:"base"`
		Context string `json:"context"`
		Next    string `json:"next"`
		Self    string `json:"self"`
	} `json:"_links"`
}

Jump to

Keyboard shortcuts

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