Documentation ¶
Index ¶
- Variables
- func AssignIssue(issueId, username string) error
- func CommentIssue(issueId, comment string) (domain.Issue, error)
- func CreateIssue(project, issueType, summary string, description string, priority string, ...) (domain.Issue, error)
- func DeleteLink(linkId string) error
- func GetIssueInfo(issueId string) (domain.Issue, error)
- func LinkIssues(inwardKey, outwardKey, linkType string) error
- func Transition(issueId, transitionId string) (string, error)
- type Assignee
- type Comment
- type Config
- type CreateIssueAPIResponse
- type CustomIncIssue
- type CustomIncIssueFields
- type Issue
- type IssueFields
- type IssueLink
- type LinkIssue
- type LinkIssueRequest
- type Project
- type SearchRequestType
- type SearchResult
- type TransitionObj
- type TransitionsResult
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SendRequest = sendRequest SendCustomRequest = sendCustomRequest SendRequestWithoutResp = sendRequestWithoutResp )
Functions ¶
func AssignIssue ¶
func CreateIssue ¶
func DeleteLink ¶
TODO: get rid of all of those separate construct methods...
func LinkIssues ¶
func Transition ¶
Types ¶
type CreateIssueAPIResponse ¶
type CreateIssueAPIResponse struct { ID string `json:"id"` Key string `json:"key"` Self string `json:"self"` }
func CreateCustomIssue ¶
func CreateCustomIssue(project, issueType, summary, desc string, labels []string) (CreateIssueAPIResponse, error)
CreateCustomIssue sends create issue API call to JIRA https://tinyurl.com/mr45wbwf (docs) Receives set of arguments to compile REST call body and returns JSON struct of response
type CustomIncIssue ¶
type CustomIncIssue struct {
Fields CustomIncIssueFields `json:"fields"`
}
type CustomIncIssueFields ¶
type Issue ¶
type Issue struct {
Fields IssueFields `json:"fields"`
}
type IssueFields ¶
type LinkIssueRequest ¶
type LinkIssueRequest struct { LinkType IssueLink `json:"type"` Inward LinkIssue `json:"inwardIssue"` Outward LinkIssue `json:"outwardIssue"` Comment `json:"comment"` }
func GetLink ¶
func GetLink(linkId string) (*LinkIssueRequest, error)
type SearchRequestType ¶
type SearchResult ¶
type SearchResult struct { StartIndex int `json:"startAt"` MaxResults int `json:"maxResults"` TotalResults int `json:"total"` Issues []domain.Issue `json:"issues"` }
func SearchIssues ¶
func SearchIssues(query string, startIndex int, maxResults int) (SearchResult, error)
type TransitionObj ¶
type TransitionsResult ¶
type TransitionsResult struct {
Transitions []TransitionObj `json:"transitions"`
}
func GetTransitions ¶
func GetTransitions(issueId string) (TransitionsResult, error)
Click to show internal directories.
Click to hide internal directories.