Versions in this module Expand all Collapse all v0 v0.8.0 Nov 20, 2022 v0.7.2 Mar 21, 2021 Changes in this version + const TimeFormat + var ErrMissingCredentials = errors.New("missing credentials") + func ParseTime(timeStr string) (time.Time, error) + func UpdateIssueStatus(client *Client, issueKeyOrID string, desiredStateNameOrID string) (time.Time, error) + type ChangeLogEntry struct + Author User + Created Time + ID string + Items []ChangeLogItem + type ChangeLogItem struct + Field string + FieldType string + From string + FromString string + To string + ToString string + type ChangeLogIterator struct + Err error + func (cli *ChangeLogIterator) HasError() bool + func (cli *ChangeLogIterator) HasNext() bool + func (cli *ChangeLogIterator) Next() *ChangeLogEntry + type ChangeLogPage struct + Entries []ChangeLogEntry + IsLast bool + MaxResults int + StartAt int + Total int + Values []ChangeLogEntry + func (clp *ChangeLogPage) IsLastPage() bool + func (clp *ChangeLogPage) NextStartAt() int + type Client struct + func NewClient(ctx context.Context, serverURL string) *Client + func (client *Client) AddComment(issueKeyOrID, body string) (*Comment, error) + func (client *Client) CreateIssue(projectIDOrKey, title, body string, extra map[string]interface{}) (*IssueCreateResult, error) + func (client *Client) DoTransition(issueKeyOrID string, transitionID string) (time.Time, error) + func (client *Client) GetChangeLog(idOrKey string, maxResults int, startAt int) (*ChangeLogPage, error) + func (client *Client) GetComments(idOrKey string, maxResults int, startAt int) (*CommentPage, error) + func (client *Client) GetIssue(idOrKey string, fields []string, expand []string, properties []string) (*Issue, error) + func (client *Client) GetProject(projectIDOrKey string) (*Project, error) + func (client *Client) GetServerInfo() (*ServerInfo, error) + func (client *Client) GetServerTime() (Time, error) + func (client *Client) GetTransitions(issueKeyOrID string) (*TransitionList, error) + func (client *Client) IterChangeLog(idOrKey string, pageSize int) *ChangeLogIterator + func (client *Client) IterComments(idOrKey string, pageSize int) *CommentIterator + func (client *Client) IterSearch(jql string, pageSize int) *SearchIterator + func (client *Client) Login(credType, login, password string) error + func (client *Client) RefreshSessionToken(username, password string) error + func (client *Client) RefreshSessionTokenRaw(credentialsJSON []byte) error + func (client *Client) Search(jql string, maxResults int, startAt int) (*SearchResult, error) + func (client *Client) SetTokenCredentials(username, password string) error + func (client *Client) UpdateComment(issueKeyOrID, commentID, body string) (*Comment, error) + func (client *Client) UpdateIssueBody(issueKeyOrID, body string) (time.Time, error) + func (client *Client) UpdateIssueTitle(issueKeyOrID, title string) (time.Time, error) + func (client *Client) UpdateLabels(issueKeyOrID string, added, removed []bug.Label) (time.Time, error) + type ClientTransport struct + func (ct *ClientTransport) RoundTrip(req *http.Request) (*http.Response, error) + func (ct *ClientTransport) SetCredentials(username string, token string) + type Comment struct + Author User + Body string + Created Time + ID string + UpdateAuthor User + Updated Time + type CommentCreate struct + Body string + type CommentIterator struct + Err error + func (ci *CommentIterator) HasError() bool + func (ci *CommentIterator) HasNext() bool + func (ci *CommentIterator) Next() *Comment + type CommentPage struct + Comments []Comment + MaxResults int + StartAt int + Total int + func (cp *CommentPage) IsLastPage() bool + func (cp *CommentPage) NextStartAt() int + type Issue struct + ChangeLog ChangeLogPage + Fields IssueFields + ID string + Key string + type IssueCreate struct + Fields IssueCreateFields + type IssueCreateFields struct + Description string + IssueType IssueType + Project Project + Summary string + type IssueCreateResult struct + ID string + Key string + type IssueFields struct + Comments CommentPage + Created Time + Creator User + Description string + Labels []string + Summary string + type IssueType struct + ID string + type Jira struct + func (*Jira) LoginMetaKey() string + func (*Jira) NewExporter() core.Exporter + func (*Jira) NewImporter() core.Importer + func (*Jira) Target() string + func (*Jira) ValidParams() map[string]interface{} + func (*Jira) ValidateConfig(conf core.Configuration) error + func (j *Jira) Configure(repo *cache.RepoCache, params core.BridgeParams) (core.Configuration, error) + type Project struct + ID string + Key string + type SearchIterator struct + Err error + func (si *SearchIterator) HasError() bool + func (si *SearchIterator) HasNext() bool + func (si *SearchIterator) Next() *Issue + type SearchRequest struct + Fields []string + JQL string + MaxResults int + StartAt int + type SearchResult struct + Issues []Issue + MaxResults int + StartAt int + Total int + func (sr *SearchResult) IsLastPage() bool + func (sr *SearchResult) NextStartAt() int + type ServerInfo struct + BaseURL string + BuildDate Time + BuildNumber int + BuildPartnerName string + ScmInfo string + ServerTime Time + ServerTitle string + Version string + VersionNumbers []int + type Session struct + Name string + Value string + type SessionQuery struct + Password string + Username string + type SessionResponse struct + Session Session + type Status struct + Description string + ID string + Name string + Self string + StatusCategory StatusCategory + type StatusCategory struct + ColorName string + ID int + Key string + Name string + Self string + type Time struct + func (t *Time) UnmarshalJSON(data []byte) (err error) + type Transition struct + ID string + Name string + To Status + type TransitionList struct + Transitions []Transition + type User struct + DisplayName string + EmailAddress string + Key string + Name string