Documentation
¶
Index ¶
Constants ¶
View Source
const ( AcceptanceCriteriaEN = "Acceptance Criteria" AcceptanceCriteriaES = "Criterio de Aceptación" )
Constants for acceptance criteria patterns
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtlassianDoc ¶
type AtlassianDoc struct {
Type string `json:"type"`
Version int `json:"version"`
Content []DocContent `json:"content"`
}
JiraFields represents the fields of a Jira ticket.
type CustomField ¶
type CustomField struct {
Type string `json:"type"`
Text string `json:"text"`
Content []DocContent `json:"content,omitempty"`
}
JiraFields represents the fields of a Jira ticket.
type DocContent ¶
type DocContent struct {
Type string `json:"type"`
Text string `json:"text,omitempty"`
Content []DocContent `json:"content,omitempty"`
}
JiraFields represents the fields of a Jira ticket.
type JiraFields ¶
type JiraFields struct {
Summary string `json:"summary"`
Description AtlassianDoc `json:"description"`
CustomField map[string]CustomField `json:"customfield"`
}
JiraFields represents the fields of a Jira ticket.
type JiraService ¶
type JiraService struct {
// contains filtered or unexported fields
}
JiraService represents the service to interact with the Jira API.
func NewJiraService ¶
func NewJiraService(baseURL, apiKey, email string, client httpClient) *JiraService
NewJiraService creates a new instance of JiraService.
func (*JiraService) GetCustomFields ¶
func (s *JiraService) GetCustomFields() (map[string]string, error)
GetCustomFields gets the custom fields from Jira.
func (*JiraService) GetTicketInfo ¶
func (s *JiraService) GetTicketInfo(ticketID string) (*models.TicketInfo, error)
GetTicketInfo gets the information of a Jira ticket.
Click to show internal directories.
Click to hide internal directories.