Versions in this module Expand all Collapse all v1 v1.0.3 Feb 10, 2021 v1.0.2 Feb 7, 2021 v1.0.1 Feb 7, 2021 v1.0.0 Feb 7, 2021 Changes in this version + var UploadResult struct + func CreateIssue(url, key string, timeout int, issue IssueParam, customClient *http.Client) (int, error) + func CreateJournalStrings(issue Issue) []string + func DeleteIssue(url, key string, id, timeout int, customClient *http.Client) error + func DownloadAttachmentFiles(key string, timeout int, attachments Attachments, customClient *http.Client) ([][]byte, error) + func UpdateIssueJournals(url, key string, id, timeout int, journals []string, customClient *http.Client) error + func UpdateWatchers(url, key string, id, timeout int, issue Issue, customClient *http.Client) error + type AssignedTo struct + Id int + Name string + func ListUserIdAssignedTo(issues Issues, filename string) ([]AssignedTo, error) + type Attachment struct + Author Author + ContentUrl string + CreatedOn string + Description string + FileName string + FileSize int64 + Id int + type Attachments []*Attachment + type Author struct + Id int + Name string + type CustomField struct + Id int + Multiple bool + Name string + Value interface{} + func ListCustomFieldsId(issues Issues, filename string) ([]CustomField, error) + type CustomFields []*CustomField + type Detail struct + Name string + NewValue string + OldValue string + Property string + type Details []*Detail + type FileParam struct + ContentType string + Contents []byte + FileName string + Token string + func UploadAttachmentFiles(u, key string, timeout int, files []FileParam, customClient *http.Client) ([]FileParam, error) + type Issue struct + AssignedTo AssignedTo + Attachments Attachments + Author Author + ClosedOn string + CreatedOn string + CustomFields CustomFields + Description string + DoneRatio int + DueDate string + EstimatedHours string + Id int + IsPrivate bool + Journals Journals + Priority Priority + Project Project + StartDate string + Status Status + Subject string + Tracker Tracker + UpdatedOn string + Watchers Watchers + func ConvertNewEnv(issue Issue, conf config.Config, silent bool) (*Issue, error) + func CreateIssueFromByteSlice(content []byte) (*Issue, error) + func GetIssue(url, key string, id, timeout int, customClient *http.Client) (Issue, error) + func UnmarshalByteIssue(content []byte) (Issue, error) + type IssueParam struct + AssignedToId int + CustomFields CustomFields + Description string + Notes string + ParentIssueId int + PriorityId int + ProjectId int + StatusId int + Subject string + TrackerId int + Uploads []Uploads + func CreateIssueParam(issue Issue, uploadFiles []FileParam) IssueParam + type IssueParamJson struct + Issue IssueParam + type Issues []*Issue + func GetIssues(url, key string, projectId, timeout int, customClient *http.Client) (Issues, error) + type Journal struct + CreatedOn string + Details Details + Id int + Notes string + User User + type Journals []*Journal + type Priority struct + Id int + Name string + func ListPriorityId(issues Issues, filename string) ([]Priority, error) + type Project struct + Id int + Name string + func ListProjectId(issues Issues, filename string) ([]Project, error) + type Status struct + Id int + Name string + func ListStatusId(issues Issues, filename string) ([]Status, error) + type Tracker struct + Id int + Name string + func ListTrackerId(issues Issues, filename string) ([]Tracker, error) + type Uploads struct + ContentType string + FileName string + Token string + type User struct + Id int + Name string + type Watcher struct + Id int + Name string + type WatcherParam struct + UserId int + type Watchers []*Watcher