Versions in this module Expand all Collapse all v4 v4.5.0 Oct 26, 2023 Changes in this version + type AttachmentObject struct + Author IDName + ContentType string + ContentURL string + CreatedOn string + Description string + FileName string + FileSize string + ID int + type AttachmentUploadObject struct + ContentType string + Filename string + ID int + Token string + type Context struct + func (r *Context) AttachmentDownload(id int, dstPath string) (AttachmentObject, int, error) + func (r *Context) AttachmentDownloadStream(id int) (io.ReadCloser, AttachmentObject, int, error) + func (r *Context) AttachmentSingleGet(id int) (AttachmentObject, int, error) + func (r *Context) AttachmentUpload(filePath string) (AttachmentUploadObject, int, error) + func (r *Context) AttachmentUploadStream(f io.Reader, fileName string) (AttachmentUploadObject, int, error) + func (r *Context) CustomFieldAllGet() ([]CustomFieldObject, int, error) + func (r *Context) Del(in interface{}, out interface{}, uri url.URL, statusExpected int) (int, error) + func (r *Context) EnumerationDocumentCategoriesAllGet() ([]EnumerationDocumentCategoryObject, int, error) + func (r *Context) EnumerationPrioritiesAllGet() ([]EnumerationPriorityObject, int, error) + func (r *Context) EnumerationTimeEntryActivitiesAllGet() ([]EnumerationTimeEntryActivityObject, int, error) + func (r *Context) Get(out interface{}, uri url.URL, statusExpected int) (int, error) + func (r *Context) GroupAddUser(id int, group GroupAddUserObject) (int, error) + func (r *Context) GroupAllGet() (GroupResult, int, error) + func (r *Context) GroupCreate(group GroupCreateObject) (GroupObject, int, error) + func (r *Context) GroupDelete(id int) (int, error) + func (r *Context) GroupDeleteUser(id int, userID int) (int, error) + func (r *Context) GroupMultiGet(request GroupMultiGetRequest) (GroupResult, int, error) + func (r *Context) GroupSingleGet(id int, request GroupSingleGetRequest) (GroupObject, int, error) + func (r *Context) GroupUpdate(id int, group GroupUpdateObject) (int, error) + func (r *Context) IssueCreate(issue IssueCreateObject) (IssueObject, int, error) + func (r *Context) IssueDelete(id int) (int, error) + func (r *Context) IssueSingleGet(id int, request IssueSingleGetRequest) (IssueObject, int, error) + func (r *Context) IssueStatusAllGet() ([]IssueStatusObject, int, error) + func (r *Context) IssueUpdate(id int, issue IssueUpdateObject) (int, error) + func (r *Context) IssueWatcherAdd(id int, userID int) (int, error) + func (r *Context) IssueWatcherDelete(id int, userID int) (int, error) + func (r *Context) IssuesAllGet(request IssueAllGetRequest) (IssueResult, int, error) + func (r *Context) IssuesMultiGet(request IssueMultiGetRequest) (IssueResult, int, error) + func (r *Context) MembershipAdd(projectID string, membership MembershipAddObject) (MembershipObject, int, error) + func (r *Context) MembershipAllGet(projectID string) (MembershipResult, int, error) + func (r *Context) MembershipDelete(membershipID int) (int, error) + func (r *Context) MembershipMultiGet(projectID string, request MembershipMultiGetRequest) (MembershipResult, int, error) + func (r *Context) MembershipSingleGet(membershipID int) (MembershipObject, int, error) + func (r *Context) MembershipUpdate(membershipID int, membership MembershipUpdateObject) (int, error) + func (r *Context) Post(in interface{}, out interface{}, uri url.URL, statusExpected int) (int, error) + func (r *Context) ProjectAllGet(request ProjectAllGetRequest) (ProjectResult, int, error) + func (r *Context) ProjectCreate(project ProjectCreateObject) (ProjectObject, int, error) + func (r *Context) ProjectDelete(id string) (int, error) + func (r *Context) ProjectMultiGet(request ProjectMultiGetRequest) (ProjectResult, int, error) + func (r *Context) ProjectSingleGet(id string, request ProjectSingleGetRequest) (ProjectObject, int, error) + func (r *Context) ProjectUpdate(id string, project ProjectUpdateObject) (int, error) + func (r *Context) Put(in interface{}, out interface{}, uri url.URL, statusExpected int) (int, error) + func (r *Context) SetAPIKey(apiKey string) + func (r *Context) SetEndpoint(endpoint string) + func (r *Context) TrackerAllGet() ([]TrackerObject, int, error) + func (r *Context) UserAllGet(request UserAllGetRequest) (UserResult, int, error) + func (r *Context) UserCreate(user UserCreateObject) (UserObject, int, error) + func (r *Context) UserCurrentGet(request UserCurrentGetRequest) (UserObject, int, error) + func (r *Context) UserDelete(id int) (int, error) + func (r *Context) UserMultiGet(request UserMultiGetRequest) (UserResult, int, error) + func (r *Context) UserSingleGet(id int, request UserSingleGetRequest) (UserObject, int, error) + func (r *Context) UserUpdate(id int, user UserUpdateObject) (int, error) + func (r *Context) WikiAllGet(projectID string) ([]WikiMultiObject, int, error) + func (r *Context) WikiCreate(projectID, wikiTitle string, wiki WikiCreateObject) (WikiObject, int, error) + func (r *Context) WikiDelete(projectID, wikiTitle string) (int, error) + func (r *Context) WikiSingleGet(projectID, wikiTitle string, request WikiSingleGetRequest) (WikiObject, int, error) + func (r *Context) WikiSingleVersionGet(projectID, wikiTitle string, version int, request WikiSingleGetRequest) (WikiObject, int, error) + func (r *Context) WikiUpdate(projectID, wikiTitle string, wiki WikiUpdateObject) (int, error) + type CustomFieldGetObject struct + ID int + Multiple bool + Name string + Value []string + type CustomFieldObject struct + CustomizedType string + DefaultValue string + FieldFormat string + ID int + IsFilter bool + IsRequired bool + MaxLength int + MinLength int + Multiple bool + Name string + PossibleValues []CustomFieldPossibleValueObject + Regexp string + Roles []IDName + Searchable bool + Trackers []IDName + Visible bool + type CustomFieldPossibleValueObject struct + Value string + type CustomFieldUpdateObject struct + ID int + Value interface{} + type EnumerationDocumentCategoryObject struct + ID int + IsDefault bool + Name string + type EnumerationPriorityObject struct + ID int + IsDefault bool + Name string + type EnumerationTimeEntryActivityObject struct + ID int + IsDefault bool + Name string + type GroupAddUserObject struct + UserID int + type GroupCreateObject struct + Name string + UserIDs []int + type GroupMembershipObject struct + ID int + Project IDName + Roles []IDName + type GroupMultiGetRequest struct + Limit int + Offset int + type GroupObject struct + ID int + Memberships []GroupMembershipObject + Name string + Users []IDName + type GroupResult struct + Groups []GroupObject + Limit int + Offset int + TotalCount int + type GroupSingleGetRequest struct + Includes []string + type GroupUpdateObject struct + Name string + UserIDs []int + type IDName struct + ID int + Name string + type IssueAllGetRequest struct + Filters IssueGetRequestFilters + Includes []string + type IssueChangesetObject struct + Comments string + CommittedOn string + Revision string + User IDName + type IssueChildrenObject struct + Children []IssueChildrenObject + ID int + Subject string + Tracker IDName + type IssueCreateObject struct + AssignedToID int + CategoryID int + CustomFields []CustomFieldUpdateObject + Description string + DueDate string + EstimatedHours float64 + FixedVersionID int + IsPrivate bool + ParentIssueID int + PriorityID int + ProjectID int + StartDate string + StatusID int + Subject string + TrackerID int + Uploads []AttachmentUploadObject + WatcherUserIDs []int + type IssueGetRequestFilters struct + Cf []IssueGetRequestFiltersCf + Fields map[string][]string + type IssueGetRequestFiltersCf struct + ID int + Value string + type IssueJournalDetailObject struct + Name string + NewValue string + OldValue string + Property string + type IssueJournalObject struct + CreatedOn string + Details []IssueJournalDetailObject + ID int + Notes string + PrivateNotes bool + User IDName + type IssueMultiGetRequest struct + Filters IssueGetRequestFilters + Includes []string + Limit int + Offset int + type IssueObject struct + AssignedTo IDName + Attachments []AttachmentObject + Author IDName + Category IDName + Changesets []IssueChangesetObject + Children []IssueChildrenObject + ClosedOn string + CreatedOn string + CustomFields []CustomFieldGetObject + Description string + DoneRatio int + DueDate string + EstimatedHours float64 + FixedVersion IDName + ID int + IsPrivate int + Journals []IssueJournalObject + Parent IssueParentObject + Priority IDName + Project IDName + Relations []IssueRelationObject + SpentHours float64 + StartDate string + Status IDName + Subject string + Tracker IDName + UpdatedOn string + Watchers []IDName + type IssueParentObject struct + ID int + type IssueRelationObject struct + Delay int + ID int + IssueID int + IssueToID int + RelationType string + type IssueResult struct + Issues []IssueObject + Limit int + Offset int + TotalCount int + type IssueSingleGetRequest struct + Includes []string + type IssueStatusObject struct + ID int + IsClosed bool + IsDefault bool + Name string + type IssueUpdateObject struct + AssignedToID int + CategoryID int + CustomFields []CustomFieldUpdateObject + Description string + DueDate *string + EstimatedHours float64 + FixedVersionID int + IsPrivate bool + Notes string + ParentIssueID int + PriorityID int + PrivateNotes bool + ProjectID int + StartDate *string + StatusID int + Subject string + TrackerID int + Uploads []AttachmentUploadObject + type MembershipAddObject struct + RoleIDs []int + UserID int + type MembershipMultiGetRequest struct + Limit int + Offset int + type MembershipObject struct + Group IDName + ID int + Project IDName + Roles []MembershipRoleObject + User IDName + type MembershipResult struct + Limit int + Memberships []MembershipObject + Offset int + TotalCount int + type MembershipRoleObject struct + ID int + Inherited bool + Name string + type MembershipUpdateObject struct + RoleIDs []int + type ProjectAllGetRequest struct + Filters ProjectGetRequestFilters + Includes []string + type ProjectCreateObject struct + CustomFields []CustomFieldUpdateObject + Description string + EnabledModuleNames []string + Homepage string + Identifier string + InheritMembers bool + IsPublic bool + IssueCustomFieldIDs []int + Name string + ParentID int + TrackerIDs []int + type ProjectGetRequestFilters struct + Status ProjectStatus + type ProjectMultiGetRequest struct + Filters ProjectGetRequestFilters + Includes []string + Limit int + Offset int + type ProjectObject struct + CreatedOn string + CustomFields []CustomFieldGetObject + Description string + EnabledModules []IDName + Homepage string + ID int + Identifier string + IssueCategories []IDName + Name string + Parent IDName + Status ProjectStatus + Trackers []IDName + UpdatedOn string + type ProjectResult struct + Limit int + Offset int + Projects []ProjectObject + TotalCount int + type ProjectSingleGetRequest struct + Includes []string + type ProjectStatus int + const ProjectStatusActive + const ProjectStatusArchived + const ProjectStatusClosed + func (p ProjectStatus) String() string + type ProjectUpdateObject struct + CustomFields []CustomFieldUpdateObject + Description string + EnabledModuleNames []string + Homepage string + InheritMembers bool + IsPublic bool + IssueCustomFieldIDs []int + Name string + ParentID int + TrackerIDs []int + type TrackerObject struct + DefaultStatus IDName + ID int + Name string + type UserAllGetRequest struct + Filters UserGetRequestFilters + type UserCreateObject struct + AuthSourceID int + CustomFields []CustomFieldUpdateObject + FirstName string + GeneratePassword bool + LastName string + Login string + Mail string + MailNotification string + MustChangePasswd bool + Password string + SendInformation bool + type UserCurrentGetRequest struct + Includes []string + type UserGetRequestFilters struct + GroupID int + Name string + Status UserStatus + type UserMembershipObject struct + ID int + Project IDName + Roles []IDName + type UserMultiGetRequest struct + Filters UserGetRequestFilters + Limit int + Offset int + type UserNotification string + const UserNotificationAll + const UserNotificationOnlyAssigned + const UserNotificationOnlyMyEvents + const UserNotificationOnlyNone + const UserNotificationOnlyOwner + const UserNotificationSelected + func (u UserNotification) String() string + type UserObject struct + APIKey string + CreatedOn string + CustomFields []CustomFieldGetObject + FirstName string + Groups []IDName + ID int + LastLoginOn string + LastName string + Login string + Mail string + Memberships []UserMembershipObject + Status UserStatus + type UserResult struct + Limit int + Offset int + TotalCount int + Users []UserObject + type UserSingleGetRequest struct + Includes []string + type UserStatus int + const UserStatusActive + const UserStatusAnonymous + const UserStatusLocked + const UserStatusRegistered + func (u UserStatus) String() string + type UserUpdateObject struct + AuthSourceID int + CustomFields []CustomFieldUpdateObject + FirstName string + GeneratePassword bool + LastName string + Login string + Mail string + MailNotification string + MustChangePasswd bool + Password string + SendInformation bool + type WikiCreateObject struct + Comments string + Text string + Uploads []AttachmentUploadObject + type WikiMultiObject struct + CreatedOn string + Parent *WikiParentObject + Title string + UpdatedOn string + Version int + type WikiObject struct + Attachments *[]AttachmentObject + Author IDName + Comments string + CreatedOn string + Parent *WikiParentObject + Text string + Title string + UpdatedOn string + Version int + type WikiParentObject struct + Title string + type WikiSingleGetRequest struct + Includes []string + type WikiUpdateObject struct + Comments string + Text string + Uploads []AttachmentUploadObject + Version int