Documentation ¶
Index ¶
- Constants
- func GetAccessToken(ctx context.Context, code string) (*oauth2.Token, error)
- func GetJiraIssueCreateMeta(accessToken string, cloudID string) ([]*modelInputs.JiraProject, error)
- func GetJiraProjects(workspace *model.Workspace, accessToken string) ([]*modelInputs.JiraProject, error)
- func GetJiraSite(accessToken string) (*modelInputs.AccessibleJiraResources, error)
- func GetOAuthConfig() (*oauth2.Config, []oauth2.AuthCodeOption, error)
- func GetRefreshToken(ctx context.Context, oldToken *oauth2.Token) (*oauth2.Token, error)
- func MakeExternalIdForJiraTask(workspace *model.Workspace, issueKey string) string
- func SearchJiraIssues(accessToken string, workspace *model.Workspace, query string) ([]*modelInputs.IssuesSearchResult, error)
- type JiraAutoCompleteSearchResponse
- type JiraAutoCompleteSearchSections
- type JiraCreateIssueFields
- type JiraCreateIssuePayload
- type JiraIssue
- type JiraIssueProjectData
- type JiraIssueTypeData
- type JiraIssuesAutoCompleteResponse
- type JiraTokenResponse
Constants ¶
View Source
const ( AuthBaseUrl = "https://auth.atlassian.com" ApiBaseUrl = "https://api.atlassian.com" )
Variables ¶
This section is empty.
Functions ¶
func GetJiraIssueCreateMeta ¶
func GetJiraIssueCreateMeta(accessToken string, cloudID string) ([]*modelInputs.JiraProject, error)
func GetJiraProjects ¶
func GetJiraProjects(workspace *model.Workspace, accessToken string) ([]*modelInputs.JiraProject, error)
func GetJiraSite ¶
func GetJiraSite(accessToken string) (*modelInputs.AccessibleJiraResources, error)
func GetOAuthConfig ¶
func GetOAuthConfig() (*oauth2.Config, []oauth2.AuthCodeOption, error)
func GetRefreshToken ¶
func SearchJiraIssues ¶
func SearchJiraIssues(accessToken string, workspace *model.Workspace, query string) ([]*modelInputs.IssuesSearchResult, error)
Types ¶
type JiraAutoCompleteSearchResponse ¶
type JiraAutoCompleteSearchResponse struct {
Sections []JiraAutoCompleteSearchSections `json:"sections"`
}
type JiraAutoCompleteSearchSections ¶
type JiraAutoCompleteSearchSections struct { Label string `json:"label"` Sub string `json:"sub"` ID string `json:"id"` Issues []JiraIssuesAutoCompleteResponse `json:"issues"` }
type JiraCreateIssueFields ¶
type JiraCreateIssueFields struct { Description string `json:"description"` Summary string `json:"summary"` Project JiraIssueProjectData `json:"project"` IssueType JiraIssueTypeData `json:"issuetype"` }
type JiraCreateIssuePayload ¶
type JiraCreateIssuePayload struct {
Fields JiraCreateIssueFields `json:"fields"`
}
type JiraIssue ¶
func CreateJiraTask ¶
type JiraIssueProjectData ¶
type JiraIssueProjectData struct {
Id string `json:"id"`
}
type JiraIssueTypeData ¶
type JiraIssueTypeData struct {
Id string `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.