Documentation ¶
Index ¶
- Constants
- func AddIssueWorklog(ua HttpClient, endpoint string, issue string, wp WorklogProvider) (*jiradata.Worklog, error)
- func CreateComponent(ua HttpClient, endpoint string, cp ComponentProvider) (*jiradata.Component, error)
- func CreateIssue(ua HttpClient, endpoint string, iup IssueUpdateProvider) (*jiradata.IssueCreateResponse, error)
- func DeleteSession(ua HttpClient, endpoint string) error
- func EditIssue(ua HttpClient, endpoint string, issue string, iup IssueUpdateProvider) error
- func EpicAddIssues(ua HttpClient, endpoint string, epic string, eip EpicIssuesProvider) error
- func EpicRemoveIssues(ua HttpClient, endpoint string, eip EpicIssuesProvider) error
- func EpicSearch(ua HttpClient, endpoint string, epic string, sp SearchProvider) (*jiradata.SearchResults, error)
- func GetAttachment(ua HttpClient, endpoint string, id string) (*jiradata.Attachment, error)
- func GetFields(ua HttpClient, endpoint string) ([]jiradata.Field, error)
- func GetIssue(ua HttpClient, endpoint string, issue string, iqg IssueQueryProvider) (*jiradata.Issue, error)
- func GetIssueCreateMetaIssueType(ua HttpClient, endpoint string, projectKey, issueTypeName string) (*jiradata.IssueType, error)
- func GetIssueCreateMetaProject(ua HttpClient, endpoint string, projectKey string) (*jiradata.CreateMetaProject, error)
- func GetIssueEditMeta(ua HttpClient, endpoint string, issue string) (*jiradata.EditMeta, error)
- func GetIssueLinkTypes(ua HttpClient, endpoint string) (*jiradata.IssueLinkTypes, error)
- func GetIssueTransitions(ua HttpClient, endpoint string, issue string) (*jiradata.TransitionsMeta, error)
- func GetIssueWorklog(ua HttpClient, endpoint string, issue string) (*jiradata.Worklogs, error)
- func GetProjectComponents(ua HttpClient, endpoint string, project string) (*jiradata.Components, error)
- func GetSession(ua HttpClient, endpoint string) (*jiradata.CurrentUser, error)
- func IssueAddComment(ua HttpClient, endpoint string, issue string, cp CommentProvider) (*jiradata.Comment, error)
- func IssueAddVote(ua HttpClient, endpoint string, issue string) error
- func IssueAddWatcher(ua HttpClient, endpoint string, issue, user string) error
- func IssueAssign(ua HttpClient, endpoint string, issue, name string) error
- func IssueAttachFile(ua HttpClient, endpoint string, issue, filename string, contents io.Reader) (*jiradata.ListOfAttachment, error)
- func IssueRemoveVote(ua HttpClient, endpoint string, issue string) error
- func IssueRemoveWatcher(ua HttpClient, endpoint string, issue, user string) error
- func LinkIssues(ua HttpClient, endpoint string, lip LinkIssueProvider) error
- func NewSession(ua HttpClient, endpoint string, ap AuthProvider) (*jiradata.AuthSuccess, error)
- func RankIssues(ua HttpClient, endpoint string, rrp RankRequestProvider) error
- func RemoveAttachment(ua HttpClient, endpoint string, id string) error
- func Search(ua HttpClient, endpoint string, sp SearchProvider) (*jiradata.SearchResults, error)
- func TransitionIssue(ua HttpClient, endpoint string, issue string, iup IssueUpdateProvider) error
- type AuthOptions
- type AuthProvider
- type CommentProvider
- type ComponentProvider
- type EpicIssuesProvider
- type HttpClient
- type IssueOptions
- type IssueQueryProvider
- type IssueUpdateProvider
- type Jira
- func (j *Jira) AddIssueWorklog(issue string, wp WorklogProvider) (*jiradata.Worklog, error)
- func (j *Jira) CreateComponent(cp ComponentProvider) (*jiradata.Component, error)
- func (j *Jira) CreateIssue(iup IssueUpdateProvider) (*jiradata.IssueCreateResponse, error)
- func (j *Jira) DeleteSession() error
- func (j *Jira) EditIssue(issue string, iup IssueUpdateProvider) error
- func (j *Jira) EpicAddIssues(epic string, eip EpicIssuesProvider) error
- func (j *Jira) EpicRemoveIssues(eip EpicIssuesProvider) error
- func (j *Jira) EpicSearch(epic string, sp SearchProvider) (*jiradata.SearchResults, error)
- func (j *Jira) GetAttachment(id string) (*jiradata.Attachment, error)
- func (j *Jira) GetFields() ([]jiradata.Field, error)
- func (j *Jira) GetIssue(issue string, iqg IssueQueryProvider) (*jiradata.Issue, error)
- func (j *Jira) GetIssueCreateMetaIssueType(projectKey, issueTypeName string) (*jiradata.IssueType, error)
- func (j *Jira) GetIssueCreateMetaProject(projectKey string) (*jiradata.CreateMetaProject, error)
- func (j *Jira) GetIssueEditMeta(issue string) (*jiradata.EditMeta, error)
- func (j *Jira) GetIssueLinkTypes() (*jiradata.IssueLinkTypes, error)
- func (j *Jira) GetIssueTransitions(issue string) (*jiradata.TransitionsMeta, error)
- func (j *Jira) GetIssueWorklog(issue string) (*jiradata.Worklogs, error)
- func (j *Jira) GetProjectComponents(project string) (*jiradata.Components, error)
- func (j *Jira) GetSession() (*jiradata.CurrentUser, error)
- func (j *Jira) IssueAddComment(issue string, cp CommentProvider) (*jiradata.Comment, error)
- func (j *Jira) IssueAddVote(issue string) error
- func (j *Jira) IssueAddWatcher(issue, user string) error
- func (j *Jira) IssueAssign(issue, name string) error
- func (j *Jira) IssueAttachFile(issue, filename string, contents io.Reader) (*jiradata.ListOfAttachment, error)
- func (j *Jira) IssueRemoveVote(issue string) error
- func (j *Jira) IssueRemoveWatcher(issue, user string) error
- func (j *Jira) LinkIssues(lip LinkIssueProvider) error
- func (j *Jira) NewSession(ap AuthProvider) (*jiradata.AuthSuccess, error)
- func (j *Jira) RankIssues(rrp RankRequestProvider) error
- func (j *Jira) RemoveAttachment(id string) error
- func (j *Jira) Search(sp SearchProvider) (*jiradata.SearchResults, error)
- func (j *Jira) TransitionIssue(issue string, iup IssueUpdateProvider) error
- type LinkIssueProvider
- type RankRequestProvider
- type SearchOptions
- type SearchProvider
- type UserProvider
- type WorklogProvider
Constants ¶
const VERSION = "1.0.14"
Variables ¶
This section is empty.
Functions ¶
func AddIssueWorklog ¶ added in v1.0.0
func AddIssueWorklog(ua HttpClient, endpoint string, issue string, wp WorklogProvider) (*jiradata.Worklog, error)
func CreateComponent ¶ added in v1.0.0
func CreateComponent(ua HttpClient, endpoint string, cp ComponentProvider) (*jiradata.Component, error)
func CreateIssue ¶ added in v1.0.0
func CreateIssue(ua HttpClient, endpoint string, iup IssueUpdateProvider) (*jiradata.IssueCreateResponse, error)
func DeleteSession ¶ added in v1.0.0
func DeleteSession(ua HttpClient, endpoint string) error
func EditIssue ¶ added in v1.0.0
func EditIssue(ua HttpClient, endpoint string, issue string, iup IssueUpdateProvider) error
func EpicAddIssues ¶ added in v1.0.7
func EpicAddIssues(ua HttpClient, endpoint string, epic string, eip EpicIssuesProvider) error
func EpicRemoveIssues ¶ added in v1.0.7
func EpicRemoveIssues(ua HttpClient, endpoint string, eip EpicIssuesProvider) error
func EpicSearch ¶ added in v1.0.7
func EpicSearch(ua HttpClient, endpoint string, epic string, sp SearchProvider) (*jiradata.SearchResults, error)
func GetAttachment ¶ added in v1.0.8
func GetAttachment(ua HttpClient, endpoint string, id string) (*jiradata.Attachment, error)
func GetFields ¶ added in v1.0.0
func GetFields(ua HttpClient, endpoint string) ([]jiradata.Field, error)
func GetIssue ¶ added in v1.0.0
func GetIssue(ua HttpClient, endpoint string, issue string, iqg IssueQueryProvider) (*jiradata.Issue, error)
func GetIssueCreateMetaIssueType ¶ added in v1.0.0
func GetIssueCreateMetaProject ¶ added in v1.0.0
func GetIssueCreateMetaProject(ua HttpClient, endpoint string, projectKey string) (*jiradata.CreateMetaProject, error)
func GetIssueEditMeta ¶ added in v1.0.0
func GetIssueLinkTypes ¶ added in v1.0.0
func GetIssueLinkTypes(ua HttpClient, endpoint string) (*jiradata.IssueLinkTypes, error)
func GetIssueTransitions ¶ added in v1.0.0
func GetIssueTransitions(ua HttpClient, endpoint string, issue string) (*jiradata.TransitionsMeta, error)
func GetIssueWorklog ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue/{issueIdOrKey}/worklog-getIssueWorklog
func GetProjectComponents ¶ added in v1.0.0
func GetProjectComponents(ua HttpClient, endpoint string, project string) (*jiradata.Components, error)
func GetSession ¶ added in v1.0.0
func GetSession(ua HttpClient, endpoint string) (*jiradata.CurrentUser, error)
func IssueAddComment ¶ added in v1.0.0
func IssueAddComment(ua HttpClient, endpoint string, issue string, cp CommentProvider) (*jiradata.Comment, error)
func IssueAddVote ¶ added in v1.0.0
func IssueAddVote(ua HttpClient, endpoint string, issue string) error
func IssueAddWatcher ¶ added in v1.0.0
func IssueAddWatcher(ua HttpClient, endpoint string, issue, user string) error
func IssueAssign ¶ added in v1.0.0
func IssueAssign(ua HttpClient, endpoint string, issue, name string) error
func IssueAttachFile ¶ added in v1.0.8
func IssueAttachFile(ua HttpClient, endpoint string, issue, filename string, contents io.Reader) (*jiradata.ListOfAttachment, error)
func IssueRemoveVote ¶ added in v1.0.0
func IssueRemoveVote(ua HttpClient, endpoint string, issue string) error
func IssueRemoveWatcher ¶ added in v1.0.0
func IssueRemoveWatcher(ua HttpClient, endpoint string, issue, user string) error
func LinkIssues ¶ added in v1.0.0
func LinkIssues(ua HttpClient, endpoint string, lip LinkIssueProvider) error
func NewSession ¶ added in v1.0.0
func NewSession(ua HttpClient, endpoint string, ap AuthProvider) (*jiradata.AuthSuccess, error)
func RankIssues ¶ added in v1.0.0
func RankIssues(ua HttpClient, endpoint string, rrp RankRequestProvider) error
func RemoveAttachment ¶ added in v1.0.8
func RemoveAttachment(ua HttpClient, endpoint string, id string) error
func Search ¶ added in v1.0.0
func Search(ua HttpClient, endpoint string, sp SearchProvider) (*jiradata.SearchResults, error)
func TransitionIssue ¶ added in v1.0.0
func TransitionIssue(ua HttpClient, endpoint string, issue string, iup IssueUpdateProvider) error
Types ¶
type AuthOptions ¶ added in v1.0.0
func (*AuthOptions) AuthParams ¶ added in v1.0.0
func (a *AuthOptions) AuthParams() *jiradata.AuthParams
type AuthProvider ¶ added in v1.0.0
type AuthProvider interface {
ProvideAuthParams() *jiradata.AuthParams
}
type CommentProvider ¶ added in v1.0.0
type ComponentProvider ¶ added in v1.0.0
type EpicIssuesProvider ¶ added in v1.0.7
type EpicIssuesProvider interface {
ProvideEpicIssues() *jiradata.EpicIssues
}
type HttpClient ¶ added in v1.0.0
type IssueOptions ¶ added in v1.0.0
type IssueOptions struct { Fields []string `json:"fields,omitempty" yaml:"fields,omitempty"` Expand []string `json:"expand,omitempty" yaml:"expand,omitempty"` Properties []string `json:"properties,omitempty" yaml:"properties,omitempty"` FieldsByKeys bool `json:"fieldsByKeys,omitempty" yaml:"fieldsByKeys,omitempty"` UpdateHistory bool `json:"updateHistory,omitempty" yaml:"updateHistory,omitempty"` }
func (*IssueOptions) ProvideIssueQueryString ¶ added in v1.0.0
func (o *IssueOptions) ProvideIssueQueryString() string
type IssueQueryProvider ¶ added in v1.0.0
type IssueQueryProvider interface {
ProvideIssueQueryString() string
}
type IssueUpdateProvider ¶ added in v1.0.0
type IssueUpdateProvider interface {
ProvideIssueUpdate() *jiradata.IssueUpdate
}
type Jira ¶ added in v1.0.0
type Jira struct { Endpoint string `json:"endpoint,omitempty" yaml:"endpoint,omitempty"` UA HttpClient `json:"-" yaml:"-"` }
func (*Jira) AddIssueWorklog ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue/{issueIdOrKey}/worklog-addWorklog
func (*Jira) CreateComponent ¶ added in v1.0.0
func (j *Jira) CreateComponent(cp ComponentProvider) (*jiradata.Component, error)
https://docs.atlassian.com/jira/REST/cloud/#api/2/component-createComponent
func (*Jira) CreateIssue ¶ added in v1.0.0
func (j *Jira) CreateIssue(iup IssueUpdateProvider) (*jiradata.IssueCreateResponse, error)
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-createIssue
func (*Jira) DeleteSession ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#auth/1/session-logout
func (*Jira) EditIssue ¶ added in v1.0.0
func (j *Jira) EditIssue(issue string, iup IssueUpdateProvider) error
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
func (*Jira) EpicAddIssues ¶ added in v1.0.7
func (j *Jira) EpicAddIssues(epic string, eip EpicIssuesProvider) error
https://docs.atlassian.com/jira-software/REST/latest/#agile/1.0/epic-moveIssuesToEpic
func (*Jira) EpicRemoveIssues ¶ added in v1.0.7
func (j *Jira) EpicRemoveIssues(eip EpicIssuesProvider) error
https://docs.atlassian.com/jira-software/REST/latest/#agile/1.0/epic-removeIssuesFromEpic
func (*Jira) EpicSearch ¶ added in v1.0.7
func (j *Jira) EpicSearch(epic string, sp SearchProvider) (*jiradata.SearchResults, error)
https://docs.atlassian.com/jira-software/REST/latest/#agile/1.0/epic-getIssuesForEpic
func (*Jira) GetAttachment ¶ added in v1.0.8
func (j *Jira) GetAttachment(id string) (*jiradata.Attachment, error)
https://docs.atlassian.com/jira/REST/cloud/#api/2/attachment-getAttachment
func (*Jira) GetFields ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/field-getFields
func (*Jira) GetIssue ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getIssue
func (*Jira) GetIssueCreateMetaIssueType ¶ added in v1.0.0
func (j *Jira) GetIssueCreateMetaIssueType(projectKey, issueTypeName string) (*jiradata.IssueType, error)
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getCreateIssueMeta
func (*Jira) GetIssueCreateMetaProject ¶ added in v1.0.0
func (j *Jira) GetIssueCreateMetaProject(projectKey string) (*jiradata.CreateMetaProject, error)
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getCreateIssueMeta
func (*Jira) GetIssueEditMeta ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getEditIssueMeta
func (*Jira) GetIssueLinkTypes ¶ added in v1.0.0
func (j *Jira) GetIssueLinkTypes() (*jiradata.IssueLinkTypes, error)
https://docs.atlassian.com/jira/REST/cloud/#api/2/issueLinkType-getIssueLinkTypes
func (*Jira) GetIssueTransitions ¶ added in v1.0.0
func (j *Jira) GetIssueTransitions(issue string) (*jiradata.TransitionsMeta, error)
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getTransitions
func (*Jira) GetIssueWorklog ¶ added in v1.0.0
func (*Jira) GetProjectComponents ¶ added in v1.0.0
func (j *Jira) GetProjectComponents(project string) (*jiradata.Components, error)
https://docs.atlassian.com/jira/REST/cloud/#api/2/project-getProjectComponents
func (*Jira) GetSession ¶ added in v1.0.0
func (j *Jira) GetSession() (*jiradata.CurrentUser, error)
https://docs.atlassian.com/jira/REST/cloud/#auth/1/session-currentUser
func (*Jira) IssueAddComment ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue/{issueIdOrKey}/comment-addComment
func (*Jira) IssueAddVote ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-addVote
func (*Jira) IssueAddWatcher ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-addWatcher
func (*Jira) IssueAssign ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-assign
func (*Jira) IssueAttachFile ¶ added in v1.0.8
func (j *Jira) IssueAttachFile(issue, filename string, contents io.Reader) (*jiradata.ListOfAttachment, error)
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue/{issueIdOrKey}/attachments-addAttachment
func (*Jira) IssueRemoveVote ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-removeVote
func (*Jira) IssueRemoveWatcher ¶ added in v1.0.0
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-addWatcher
func (*Jira) LinkIssues ¶ added in v1.0.0
func (j *Jira) LinkIssues(lip LinkIssueProvider) error
https://docs.atlassian.com/jira/REST/cloud/#api/2/issueLink-linkIssues
func (*Jira) NewSession ¶ added in v1.0.0
func (j *Jira) NewSession(ap AuthProvider) (*jiradata.AuthSuccess, error)
https://docs.atlassian.com/jira/REST/cloud/#auth/1/session-login
func (*Jira) RankIssues ¶ added in v1.0.0
func (j *Jira) RankIssues(rrp RankRequestProvider) error
https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/issue-rankIssues
func (*Jira) RemoveAttachment ¶ added in v1.0.8
https://docs.atlassian.com/jira/REST/cloud/#api/2/attachment-removeAttachment
func (*Jira) Search ¶ added in v1.0.0
func (j *Jira) Search(sp SearchProvider) (*jiradata.SearchResults, error)
https://docs.atlassian.com/jira/REST/cloud/#api/2/search-searchUsingSearchRequest
func (*Jira) TransitionIssue ¶ added in v1.0.0
func (j *Jira) TransitionIssue(issue string, iup IssueUpdateProvider) error
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-doTransition
type LinkIssueProvider ¶ added in v1.0.0
type LinkIssueProvider interface {
ProvideLinkIssueRequest() *jiradata.LinkIssueRequest
}
type RankRequestProvider ¶ added in v1.0.0
type RankRequestProvider interface {
ProvideRankRequest() *jiradata.RankRequest
}
type SearchOptions ¶ added in v1.0.0
type SearchOptions struct { Assignee string `yaml:"assignee,omitempty" json:"assignee,omitempty"` Query string `yaml:"query,omitempty" json:"query,omitempty"` QueryFields string `yaml:"query-fields,omitempty" json:"query-fields,omitempty"` Project string `yaml:"project,omitempty" json:"project,omitempty"` Component string `yaml:"component,omitempty" json:"component,omitempty"` IssueType string `yaml:"issue-type,omitempty" json:"issue-type,omitempty"` Watcher string `yaml:"watcher,omitempty" json:"watcher,omitempty"` Reporter string `yaml:"reporter,omitempty" json:"reporter,omitempty"` Status string `yaml:"status,omitempty" json:"status,omitempty"` Sort string `yaml:"sort,omitempty" json:"sort,omitempty"` MaxResults int `yaml:"max-results,omitempty" json:"max-results,omitempty"` }
func (*SearchOptions) ProvideSearchRequest ¶ added in v1.0.0
func (o *SearchOptions) ProvideSearchRequest() *jiradata.SearchRequest
type SearchProvider ¶ added in v1.0.0
type SearchProvider interface {
ProvideSearchRequest() *jiradata.SearchRequest
}