Documentation
¶
Index ¶
- func CheckResponse(r *http.Response) error
- func Do(c *http.Client, req *http.Request, v interface{}) (*http.Response, error)
- type Actor
- type ActorGroup
- type ActorUser
- type AuthorObject
- type Client
- type CommentBody
- type CommentService
- type ComponentGetObject
- type ComponentGetOption
- type ComponentObject
- type ComponentPostObject
- type ComponentPostOption
- type ComponentService
- type CustomFieldService
- type ErrorResponse
- type FID
- type FName
- type FTime
- type FieldGetObject
- type FieldGetOption
- type FieldObject
- type Fields
- type IssueAssigneePutObject
- type IssueAssigneePutOption
- type IssueCommentGetObject
- type IssueCommentGetOption
- type IssueCommentPostObject
- type IssueCommentPostOption
- type IssueFields
- type IssueGetObject
- type IssueGetOption
- type IssueMetaObject
- type IssueMetaOption
- type IssueObject
- type IssuePostObject
- type IssuePostOption
- type IssueSearchObject
- type IssueSearchOption
- type IssueSearchService
- type IssueService
- func (u *IssueService) Assignee(opts *IssueAssigneePutOption) (v *IssueAssigneePutObject, resp *http.Response, err error)
- func (u *IssueService) Get(opts *IssueGetOption) (v *IssueGetObject, resp *http.Response, err error)
- func (u *IssueService) Meta(opts *IssueMetaOption) (v *IssueMetaObject, resp *http.Response, err error)
- func (u *IssueService) Post(opts *IssuePostOption) (v *IssuePostObject, resp *http.Response, err error)
- type IssueTransitionsGetObject
- type IssueTransitionsGetOption
- type IssueTransitionsPostObject
- type IssueTransitionsPostOption
- type IssueTypeGetObject
- type IssueTypeGetOption
- type IssueTypeListObject
- type IssueTypeListOption
- type IssueTypeObject
- type IssueTypePostObject
- type IssueTypePostOption
- type IssueTypeService
- func (u *IssueTypeService) Get(opts *IssueTypeGetOption) (v *IssueTypeGetObject, resp *http.Response, err error)
- func (u *IssueTypeService) List(opts *IssueTypeListOption) (v *IssueTypeListObject, resp *http.Response, err error)
- func (u *IssueTypeService) Post(opts *IssueTypePostOption) (v *IssueTypePostObject, resp *http.Response, err error)
- type IssueTypeType
- type IssueVisibility
- type Lead
- type PStatusObject
- type PriorityGetObject
- type PriorityGetOption
- type PriorityObject
- type PriorityService
- type ProjectCategory
- type ProjectGetObject
- type ProjectGetOption
- type ProjectIssueTypeFieldsObject
- type ProjectIssueTypeGetObject
- type ProjectIssueTypeGetOption
- type ProjectObject
- type ProjectPostObject
- type ProjectPostOption
- type ProjectSearchObject
- type ProjectSearchOption
- type ProjectService
- func (u *ProjectService) Get(opts *ProjectGetOption) (v *ProjectGetObject, resp *http.Response, err error)
- func (u *ProjectService) IssueTypeFields(opts *ProjectIssueTypeGetOption) (v *ProjectIssueTypeFieldsObject, resp *http.Response, err error)
- func (u *ProjectService) IssueTypeWorkflow(opts *ProjectIssueTypeGetOption) (v *ProjectIssueTypeGetObject, resp *http.Response, err error)
- func (u *ProjectService) Post(opts *ProjectPostOption) (v *ProjectPostObject, resp *http.Response, err error)
- func (u *ProjectService) Search(opts *ProjectSearchOption) (v *ProjectSearchObject, resp *http.Response, err error)
- func (u *ProjectService) Types(opts *ProjectTypeGetOption) (v *ProjectTypeGetObject, resp *http.Response, err error)
- type ProjectStatusGetOptions
- type ProjectStatusObject
- type ProjectTypeGetObject
- type ProjectTypeGetOption
- type ProjectTypeObject
- type RoleGetObject
- type RoleGetOption
- type RoleListObject
- type RoleListOption
- type RoleObject
- type RolePGetsObject
- type RolePostObject
- type RolePostOption
- type RoleScope
- type RoleService
- func (u *RoleService) List(opts *RoleListOption) (v *RoleListObject, resp *http.Response, err error)
- func (u *RoleService) PGet(opts *RoleGetOption) (v *RoleGetObject, resp *http.Response, err error)
- func (u *RoleService) PGets(opts *RoleGetOption) (v *interface{}, resp *http.Response, err error)
- func (u *RoleService) Post(opts *RolePostOption) (v *RolePostObject, resp *http.Response, err error)
- type RoleUserDelObject
- type RoleUserDelOption
- type RoleUserGetObject
- type RoleUserGetOption
- type RoleUserPostObject
- type RoleUserPostOption
- type RoleUserService
- func (u *RoleUserService) DefaultDel(opts *RoleUserDelOption) (v *RoleUserDelObject, resp *http.Response, err error)
- func (u *RoleUserService) DefaultGet(opts *RoleUserGetOption) (v *RoleUserGetObject, resp *http.Response, err error)
- func (u *RoleUserService) DefaultPost(opts *RoleUserPostOption) (v *RoleUserPostObject, resp *http.Response, err error)
- func (u *RoleUserService) Del(opts *RoleUserDelOption) (v *RoleUserDelObject, resp *http.Response, err error)
- func (u *RoleUserService) Get(opts *RoleUserGetOption) (v *RoleUserGetObject, resp *http.Response, err error)
- func (u *RoleUserService) Post(opts *RoleUserPostOption) (v *RoleUserPostObject, resp *http.Response, err error)
- type Roles
- type SchemeGetObject
- type SchemeGetOptions
- type SchemeListObject
- type SchemeListOptions
- type SchemeObject
- type SchemeService
- type SharedProjectObject
- type StatusGetObject
- type StatusGetOptions
- type StatusObject
- type StatusService
- func (u *StatusService) Get(opts *StatusGetOptions) (v *StatusObject, resp *http.Response, err error)
- func (u *StatusService) List(opts *StatusGetOptions) (v *StatusGetObject, resp *http.Response, err error)
- func (u *StatusService) ProjectStatusGet(opts *ProjectStatusGetOptions) (v *ProjectStatusObject, resp *http.Response, err error)
- type TFields
- type TTransition
- type TUpdate
- type TransitionsObject
- type TransitionsService
- type UserAssignableObject
- type UserAssignableOption
- type UserGetObject
- type UserGetOption
- type UserObject
- type UserSearchObject
- type UserSearchOption
- type UserService
- func (u *UserService) Assignable(opts *UserAssignableOption) (v *UserAssignableObject, resp *http.Response, err error)
- func (u *UserService) Get(opts *UserGetOption) (v *UserGetObject, resp *http.Response, err error)
- func (u *UserService) Search(opts *UserSearchOption) (v *UserSearchObject, resp *http.Response, err error)
- type ViewScreen
- type Votes
- type WatcherGetObject
- type WatcherObject
- type WatcherOption
- type WatcherService
- func (u *WatcherService) Del(opts *WatcherOption) (v *WatcherObject, resp *http.Response, err error)
- func (u *WatcherService) Get(opts *WatcherOption) (v *WatcherGetObject, resp *http.Response, err error)
- func (u *WatcherService) Post(opts *WatcherOption) (v *WatcherObject, resp *http.Response, err error)
- type Watches
- type WorkflowGetObject
- type WorkflowGetOption
- type WorkflowObject
- type WorkflowService
- type WorklogObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResponse ¶
Types ¶
type ActorGroup ¶ added in v0.1.4
type AuthorObject ¶ added in v0.1.4
type AuthorObject struct {
Self string `json:"self"`
Name string `json:"name"`
Key string `json:"key"`
EmailAddress string `json:"emailAddress"`
AvatarUrls struct {
Four8X48 string `json:"48x48"`
Two4X24 string `json:"24x24"`
One6X16 string `json:"16x16"`
Three2X32 string `json:"32x32"`
} `json:"avatarUrls"`
DisplayName string `json:"displayName"`
Active bool `json:"active"`
TimeZone string `json:"timeZone"`
}
type Client ¶
type Client struct {
User *UserService
Project *ProjectService
Issue *IssueService
Comment *CommentService
IssueType *IssueTypeService
Priority *PriorityService
Status *StatusService
Component *ComponentService
Transitions *TransitionsService
Scheme *SchemeService
IssueSearch *IssueSearchService
Watcher *WatcherService
Role *RoleService
RoleUser *RoleUserService
CustomField *CustomFieldService
Workflow *WorkflowService
// contains filtered or unexported fields
}
type CommentBody ¶
type CommentBody struct {
Self string `json:"self"`
ID string `json:"id"`
Author AuthorObject `json:"author"`
Body string `json:"body"`
UpdateAuthor AuthorObject `json:"updateAuthor"`
Created string `json:"created"`
Updated string `json:"updated"`
Visibility struct {
Type string `json:"type"`
Value string `json:"value"`
} `json:"visibility,omitempty"`
}
type CommentService ¶
type CommentService struct {
// contains filtered or unexported fields
}
func (*CommentService) Get ¶
func (u *CommentService) Get(opts *IssueCommentGetOption) (v *IssueCommentGetObject, resp *http.Response, err error)
func (*CommentService) Post ¶
func (u *CommentService) Post(opts *IssueCommentPostOption) (v *IssueCommentPostObject, resp *http.Response, err error)
type ComponentGetObject ¶
type ComponentGetObject []ComponentObject
type ComponentGetOption ¶
type ComponentGetOption struct {
ProjectIdOrKey string `url:"projectIdOrKey"`
}
type ComponentObject ¶
type ComponentObject struct {
Self string `json:"self"`
ID string `json:"id"`
Name string `json:"name"`
Lead Lead `json:"lead,omitempty"`
Description string `json:"description,omitempty"`
Assigneetype string `json:"assigneeType,omitempty"`
Assignee Lead `json:"assignee,omitempty"`
Realassigneetype string `json:"realAssigneeType,omitempty"`
Realassignee Lead `json:"realassignee,omitempty"`
Isassigneetypevalid bool `json:"isAssigneeTypeValid"`
Project string `json:"project,omitempty"`
Projectid int `json:"projectId,omitempty"`
Archived bool `json:"archived,omitempty"`
}
type ComponentPostObject ¶
type ComponentPostObject ComponentObject
type ComponentPostOption ¶
type ComponentPostOption struct {
Project string `json:"project"`
Name string `json:"name"`
Description string `json:"description"`
Leadusername string `json:"leadUserName,omitempty"`
Assigneetype string `json:"assigneeType,omitempty"`
Isassigneetypevalid bool `json:"isAssigneeTypeValid,omitempty"`
}
func (*ComponentPostOption) Check ¶
func (c *ComponentPostOption) Check(user string)
type ComponentService ¶
type ComponentService struct {
// contains filtered or unexported fields
}
func (*ComponentService) Get ¶
func (u *ComponentService) Get(opts *ComponentGetOption) (v *ComponentGetObject, resp *http.Response, err error)
func (*ComponentService) Post ¶
func (u *ComponentService) Post(opts *ComponentPostOption) (v *ComponentPostObject, resp *http.Response, err error)
type CustomFieldService ¶ added in v0.1.7
type CustomFieldService struct {
// contains filtered or unexported fields
}
func (*CustomFieldService) Get ¶ added in v0.1.7
func (u *CustomFieldService) Get(opts *FieldGetOption) (v *FieldGetObject, resp *http.Response, err error)
type ErrorResponse ¶
type ErrorResponse struct {
Response *http.Response `json:"-"`
ErrorMessages []string `json:"errorMessages"`
Errors map[string]string `json:"errors"`
}
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type FieldGetObject ¶ added in v0.1.7
type FieldGetObject struct {
MaxResults int `json:"maxResults"`
StartAt int `json:"startAt"`
Total int `json:"total"`
IsLast bool `json:"isLast"`
Values []FieldObject `json:"values"`
}
type FieldGetOption ¶ added in v0.1.7
type FieldGetOption struct {
ProjectId string `url:"projectId"`
}
type FieldObject ¶ added in v0.1.7
type FieldObject struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
Type string `json:"type"`
SearcherKey string `json:"searcherKey"`
Self string `json:"self"`
NumericID int `json:"numericId"`
IsLocked bool `json:"isLocked"`
IsManaged bool `json:"isManaged"`
IsAllProjects bool `json:"isAllProjects"`
ProjectsCount int `json:"projectsCount"`
ScreensCount int `json:"screensCount"`
}
type Fields ¶
type Fields struct {
Project FID `json:"project"`
Summary string `json:"summary"`
Issuetype FID `json:"issuetype"`
Assignee FName `json:"assignee,omitempty"`
Reporter FName `json:"reporter"`
Priority FID `json:"priority,omitempty"`
Labels []string `json:"labels,omitempty"`
Timetracking FTime `json:"timetracking,omitempty"`
Versions []FID `json:"versions,omitempty"`
Environment string `json:"environment,omitempty"`
Description string `json:"description,omitempty"`
Duedate string `json:"duedate,omitempty"`
FixVersions []FID `json:"fixVersions,omitempty"`
Components []FID `json:"component,omitempty"`
Customfield30000 []string `json:"customfield_30000,omitempty"`
Customfield20000 string `json:"customfield_20000,omitempty"`
Customfield40000 string `json:"customfield_40000,omitempty"`
Customfield70000 []string `json:"customfield_70000,omitempty"`
Customfield60000 string `json:"customfield_60000,omitempty"`
Customfield50000 string `json:"customfield_50000,omitempty"`
Customfield10000 string `json:"customfield_10000,omitempty"`
}
type IssueAssigneePutObject ¶
type IssueAssigneePutObject struct{}
type IssueAssigneePutOption ¶
type IssueCommentGetObject ¶
type IssueCommentGetObject struct {
StartAt int `json:"startAt"`
MaxResults int `json:"maxResults"`
Total int `json:"total"`
Comments []CommentBody `json:"comments"`
}
type IssueCommentGetOption ¶
type IssueCommentGetOption struct {
IssueIdOrKey string `url:"issueIdOrKey"`
}
type IssueCommentPostObject ¶
type IssueCommentPostObject struct {
Self string `json:"self"`
ID string `json:"id"`
Author AuthorObject `json:"author"`
Body string `json:"body"`
UpdateAuthor AuthorObject `json:"updateAuthor"`
Created string `json:"created"`
Updated string `json:"updated"`
Visibility struct {
Type string `json:"type"`
Value string `json:"value"`
} `json:"visibility"`
}
type IssueCommentPostOption ¶
type IssueCommentPostOption struct {
IssueIdOrKey string `url:"issueIdOrKey" json:"-"`
Body string `json:"body"`
Visibility IssueVisibility `json:"visibility,omitempty"`
}
type IssueFields ¶ added in v0.1.4
type IssueFields struct {
Issuetype IssueTypeObject `json:"issuetype"`
Components []interface{} `json:"components"`
Timespent interface{} `json:"timespent"`
Timeoriginalestimate interface{} `json:"timeoriginalestimate"`
Description interface{} `json:"description"`
Project ProjectObject `json:"project"`
FixVersions []interface{} `json:"fixVersions"`
Aggregatetimespent interface{} `json:"aggregatetimespent"`
Resolution interface{} `json:"resolution"`
Customfield10105 string `json:"customfield_10105"`
Aggregatetimeestimate interface{} `json:"aggregatetimeestimate"`
Resolutiondate interface{} `json:"resolutiondate"`
Workratio int `json:"workratio"`
Summary string `json:"summary"`
LastViewed string `json:"lastViewed"`
Watches Watches `json:"watches"`
Creator AuthorObject `json:"creator"`
Subtasks []interface{} `json:"subtasks"`
Created string `json:"created"`
Reporter AuthorObject `json:"reporter"`
Customfield10000 string `json:"customfield_10000"`
Aggregateprogress struct {
Progress int `json:"progress"`
Total int `json:"total"`
} `json:"aggregateprogress"`
Priority PriorityObject `json:"priority"`
Customfield10100 interface{} `json:"customfield_10100"`
Customfield10101 interface{} `json:"customfield_10101"`
Labels []string `json:"labels"`
Environment interface{} `json:"environment"`
Timeestimate interface{} `json:"timeestimate"`
Aggregatetimeoriginalestimate interface{} `json:"aggregatetimeoriginalestimate"`
Versions []interface{} `json:"versions"`
Duedate interface{} `json:"duedate"`
Progress struct {
Progress int `json:"progress"`
Total int `json:"total"`
} `json:"progress"`
Issuelinks []interface{} `json:"issuelinks"`
Votes Votes `json:"votes"`
Assignee AuthorObject `json:"assignee"`
Updated string `json:"updated"`
Status StatusObject `json:"status"`
}
type IssueGetObject ¶
type IssueGetObject struct {
Expand string `json:"expand"`
ID string `json:"id"`
Self string `json:"self"`
Key string `json:"key"`
Fields struct {
Issuetype struct {
Self string `json:"self"`
ID string `json:"id"`
Description string `json:"description"`
IconURL string `json:"iconUrl"`
Name string `json:"name"`
Subtask bool `json:"subtask"`
AvatarID int `json:"avatarId"`
} `json:"issuetype"`
Components []interface{} `json:"component"`
Timespent interface{} `json:"timespent"`
Timeoriginalestimate interface{} `json:"timeoriginalestimate"`
Description interface{} `json:"description"`
Project struct {
Self string `json:"self"`
ID string `json:"id"`
Key string `json:"key"`
Name string `json:"name"`
ProjectTypeKey string `json:"projectTypeKey"`
AvatarUrls struct {
Four8X48 string `json:"48x48"`
Two4X24 string `json:"24x24"`
One6X16 string `json:"16x16"`
Three2X32 string `json:"32x32"`
} `json:"avatarUrls"`
} `json:"project"`
FixVersions []interface{} `json:"fixVersions"`
Aggregatetimespent interface{} `json:"aggregatetimespent"`
Resolution interface{} `json:"resolution"`
Timetracking struct {
} `json:"timetracking"`
Customfield10105 string `json:"customfield_10105"`
Attachment []interface{} `json:"attachment"`
Aggregatetimeestimate interface{} `json:"aggregatetimeestimate"`
Resolutiondate interface{} `json:"resolutiondate"`
Workratio int `json:"workratio"`
Summary string `json:"summary"`
LastViewed string `json:"lastViewed"`
Watches struct {
Self string `json:"self"`
WatchCount int `json:"watchCount"`
IsWatching bool `json:"isWatching"`
} `json:"watches"`
Creator struct {
Self string `json:"self"`
Name string `json:"name"`
Key string `json:"key"`
EmailAddress string `json:"emailAddress"`
AvatarUrls struct {
Four8X48 string `json:"48x48"`
Two4X24 string `json:"24x24"`
One6X16 string `json:"16x16"`
Three2X32 string `json:"32x32"`
} `json:"avatarUrls"`
DisplayName string `json:"displayName"`
Active bool `json:"active"`
TimeZone string `json:"timeZone"`
} `json:"creator"`
Subtasks []interface{} `json:"subtasks"`
Created string `json:"created"`
Reporter struct {
Self string `json:"self"`
Name string `json:"name"`
Key string `json:"key"`
EmailAddress string `json:"emailAddress"`
AvatarUrls struct {
Four8X48 string `json:"48x48"`
Two4X24 string `json:"24x24"`
One6X16 string `json:"16x16"`
Three2X32 string `json:"32x32"`
} `json:"avatarUrls"`
DisplayName string `json:"displayName"`
Active bool `json:"active"`
TimeZone string `json:"timeZone"`
} `json:"reporter"`
Customfield10000 string `json:"customfield_10000"`
Aggregateprogress struct {
Progress int `json:"progress"`
Total int `json:"total"`
} `json:"aggregateprogress"`
Priority struct {
Self string `json:"self"`
IconURL string `json:"iconUrl"`
Name string `json:"name"`
ID string `json:"id"`
} `json:"priority"`
Customfield10100 interface{} `json:"customfield_10100"`
Customfield10101 interface{} `json:"customfield_10101"`
Labels []string `json:"labels"`
Environment interface{} `json:"environment"`
Timeestimate interface{} `json:"timeestimate"`
Aggregatetimeoriginalestimate interface{} `json:"aggregatetimeoriginalestimate"`
Versions []interface{} `json:"versions"`
Duedate interface{} `json:"duedate"`
Progress struct {
Progress int `json:"progress"`
Total int `json:"total"`
} `json:"progress"`
Comment struct {
Comments []interface{} `json:"comments"`
MaxResults int `json:"maxResults"`
Total int `json:"total"`
StartAt int `json:"startAt"`
} `json:"comment"`
Issuelinks []interface{} `json:"issuelinks"`
Votes struct {
Self string `json:"self"`
Votes int `json:"votes"`
HasVoted bool `json:"hasVoted"`
} `json:"votes"`
Worklog struct {
StartAt int `json:"startAt"`
MaxResults int `json:"maxResults"`
Total int `json:"total"`
Worklogs []interface{} `json:"worklogs"`
} `json:"worklog"`
Assignee struct {
Self string `json:"self"`
Name string `json:"name"`
Key string `json:"key"`
EmailAddress string `json:"emailAddress"`
AvatarUrls struct {
Four8X48 string `json:"48x48"`
Two4X24 string `json:"24x24"`
One6X16 string `json:"16x16"`
Three2X32 string `json:"32x32"`
} `json:"avatarUrls"`
DisplayName string `json:"displayName"`
Active bool `json:"active"`
TimeZone string `json:"timeZone"`
} `json:"assignee"`
Updated string `json:"updated"`
Status struct {
Self string `json:"self"`
Description string `json:"description"`
IconURL string `json:"iconUrl"`
Name string `json:"name"`
ID string `json:"id"`
StatusCategory struct {
Self string `json:"self"`
ID int `json:"id"`
Key string `json:"key"`
ColorName string `json:"colorName"`
Name string `json:"name"`
} `json:"statusCategory"`
} `json:"status"`
} `json:"fields"`
}
type IssueGetOption ¶
type IssueMetaObject ¶
type IssueMetaObject struct {
Expand string `json:"expand"`
Projects []ProjectObject `json:"projects"`
}
type IssueMetaOption ¶
type IssueObject ¶ added in v0.1.4
type IssueObject struct {
Expand string `json:"expand"`
ID string `json:"id"`
Self string `json:"self"`
Key string `json:"key"`
Fields IssueFields `json:"fields"`
}
type IssuePostObject ¶
type IssuePostOption ¶
type IssuePostOption struct {
Fields Fields `json:"fields"`
}
type IssueSearchObject ¶ added in v0.1.4
type IssueSearchObject struct {
Expand string `json:"expand"`
StartAt int `json:"startAt"`
MaxResults int `json:"maxResults"`
Total int `json:"total"`
Issues []IssueObject `json:"issues"`
}
type IssueSearchOption ¶ added in v0.1.4
type IssueSearchOption struct {
Jql string `url:"jql"`
StartAt int `url:"startAt"`
MaxResults int `url:"maxResults"`
ValidateQuery bool `url:"validateQuery"`
Fields string `url:"fields"`
Expand string `url:"expand"`
}
func (*IssueSearchOption) Check ¶ added in v0.1.4
func (i *IssueSearchOption) Check()
type IssueSearchService ¶ added in v0.1.4
type IssueSearchService struct {
// contains filtered or unexported fields
}
func (*IssueSearchService) Get ¶ added in v0.1.4
func (u *IssueSearchService) Get(opts *IssueSearchOption) (v *IssueSearchObject, resp *http.Response, err error)
type IssueService ¶
type IssueService struct {
// contains filtered or unexported fields
}
func (*IssueService) Assignee ¶
func (u *IssueService) Assignee(opts *IssueAssigneePutOption) (v *IssueAssigneePutObject, resp *http.Response, err error)
func (*IssueService) Get ¶
func (u *IssueService) Get(opts *IssueGetOption) (v *IssueGetObject, resp *http.Response, err error)
func (*IssueService) Meta ¶
func (u *IssueService) Meta(opts *IssueMetaOption) (v *IssueMetaObject, resp *http.Response, err error)
func (*IssueService) Post ¶
func (u *IssueService) Post(opts *IssuePostOption) (v *IssuePostObject, resp *http.Response, err error)
type IssueTransitionsGetObject ¶
type IssueTransitionsGetObject struct {
Expand string `json:"expand"`
Transitions []TransitionsObject `json:"transitions"`
}
type IssueTransitionsPostObject ¶
type IssueTransitionsPostObject struct {
}
type IssueTransitionsPostOption ¶
type IssueTransitionsPostOption struct {
IssueIdOrKey string `url:"issueIdOrKey" json:"-"`
//Update TUpdate `json:"update"`
//Fields TFields`json:"fields"`
Transition TTransition `json:"transition"`
}
type IssueTypeGetObject ¶
type IssueTypeGetObject IssueTypeObject
type IssueTypeGetOption ¶
type IssueTypeGetOption struct {
ID string `json:"id"`
}
type IssueTypeListObject ¶
type IssueTypeListObject []IssueTypeObject
type IssueTypeListOption ¶
type IssueTypeListOption struct{}
type IssueTypeObject ¶
type IssueTypePostObject ¶
type IssueTypePostObject IssueTypeObject
type IssueTypePostOption ¶
type IssueTypePostOption struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Type IssueTypeType `json:"type,omitempty"`
}
func (*IssueTypePostOption) Check ¶
func (it *IssueTypePostOption) Check()
type IssueTypeService ¶
type IssueTypeService struct {
// contains filtered or unexported fields
}
func (*IssueTypeService) Get ¶
func (u *IssueTypeService) Get(opts *IssueTypeGetOption) (v *IssueTypeGetObject, resp *http.Response, err error)
func (*IssueTypeService) List ¶
func (u *IssueTypeService) List(opts *IssueTypeListOption) (v *IssueTypeListObject, resp *http.Response, err error)
func (*IssueTypeService) Post ¶
func (u *IssueTypeService) Post(opts *IssueTypePostOption) (v *IssueTypePostObject, resp *http.Response, err error)
type IssueTypeType ¶
type IssueTypeType string
const ( // Standard 标准 Standard IssueTypeType = "standard" // Subtask 子任务 Subtask IssueTypeType = "subtask" )
type IssueVisibility ¶
type Lead ¶
type Lead struct {
Self string `json:"self"`
Key string `json:"key"`
Name string `json:"name"`
Avatarurls struct {
Four8X48 string `json:"48x48"`
Two4X24 string `json:"24x24"`
One6X16 string `json:"16x16"`
Three2X32 string `json:"32x32"`
} `json:"avatarUrls"`
Displayname string `json:"displayName"`
Active bool `json:"active"`
}
type PStatusObject ¶
type PStatusObject struct {
Self string `json:"self"`
ID string `json:"id"`
Name string `json:"name"`
Subtask bool `json:"subtask"`
Statuses []StatusObject `json:"statuses"`
}
type PriorityGetObject ¶
type PriorityGetObject []PriorityObject
type PriorityGetOption ¶
type PriorityGetOption struct{}
type PriorityObject ¶
type PriorityService ¶
type PriorityService struct {
// contains filtered or unexported fields
}
func (*PriorityService) Get ¶
func (u *PriorityService) Get(opts *PriorityGetOption) (v *PriorityGetObject, resp *http.Response, err error)
type ProjectCategory ¶ added in v0.1.5
type ProjectGetObject ¶
type ProjectGetObject []ProjectObject
type ProjectGetOption ¶
type ProjectGetOption struct {
IncludeArchived bool `url:"includeArchived,omitempty"`
Expand string `json:"expand,omitempty"`
}
func (*ProjectGetOption) Check ¶
func (p *ProjectGetOption) Check()
type ProjectIssueTypeFieldsObject ¶ added in v0.1.7
type ProjectIssueTypeFieldsObject struct {
ViewScreen ViewScreen `json:"viewScreen"`
}
type ProjectIssueTypeGetObject ¶ added in v0.1.7
type ProjectIssueTypeGetObject struct {
TotalProjectsCount int `json:"totalProjectsCount"`
Name string `json:"name"`
State string `json:"state"`
DisplayName string `json:"displayName"`
IsDraftWithChanges bool `json:"isDraftWithChanges"`
DraftWithChanges bool `json:"draftWithChanges"`
HiddenProjectsCount int `json:"hiddenProjectsCount"`
}
type ProjectIssueTypeGetOption ¶ added in v0.1.7
type ProjectObject ¶
type ProjectObject struct {
Expand string `json:"expand,omitempty"`
Self string `json:"self,omitempty"`
ID string `json:"id,omitempty"`
Key string `json:"key"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
AvatarUrls struct {
Four8X48 string `json:"48x48"`
Two4X24 string `json:"24x24"`
One6X16 string `json:"16x16"`
Three2X32 string `json:"32x32"`
} `json:"avatarUrls,omitempty"`
ProjectCategory ProjectCategory `json:"projectCategory,omitempty"`
ProjectTypeKey string `json:"projectTypeKey,omitempty"`
Projectkeys []string `json:"projectKeys,omitempty"`
Issuetypes []IssueTypeObject `json:"issuetypes,omitempty"`
Lead Lead `json:"lead,omitempty"`
URL string `json:"url,omitempty"`
Components []ComponentObject `json:"components,omitempty"`
IssueTypes []IssueTypeObject `json:"issueTypes,omitempty"`
AssigneeType string `json:"assigneeType"`
Versions []interface{} `json:"versions,omitempty"`
Archived bool `json:"archived,omitempty"`
Roles Roles `json:"roles,omitempty"`
}
type ProjectPostObject ¶
type ProjectPostOption ¶
type ProjectPostOption struct {
Key string `json:"key"`
Name string `json:"name"`
Projecttypekey string `json:"projectTypeKey,omitempty"`
Projecttemplatekey string `json:"projectTemplateKey,omitempty"`
Description string `json:"description,omitempty"`
Lead string `json:"lead,omitempty"`
URL string `json:"url,omitempty"`
Assigneetype string `json:"assigneeType,omitempty"`
Avatarid int `json:"avatarId,omitempty"`
Issuesecurityscheme int `json:"issueSecurityScheme,omitempty"`
Permissionscheme int `json:"permissionScheme,omitempty"`
Notificationscheme int `json:"notificationScheme,omitempty"`
Categoryid int `json:"categoryId,omitempty"`
}
func (*ProjectPostOption) Check ¶
func (p *ProjectPostOption) Check(user string)
type ProjectSearchObject ¶ added in v0.1.3
type ProjectSearchObject ProjectObject
type ProjectSearchOption ¶
type ProjectSearchOption struct {
IncludeArchived bool `url:"includeArchived,omitempty"`
Search string `url:"search,omitempty"`
MaxResults int `url:"maxResults,omitempty"`
Expand string `json:"expand,omitempty"`
}
func (*ProjectSearchOption) Check ¶
func (p *ProjectSearchOption) Check()
type ProjectService ¶
type ProjectService struct {
// contains filtered or unexported fields
}
func (*ProjectService) Get ¶
func (u *ProjectService) Get(opts *ProjectGetOption) (v *ProjectGetObject, resp *http.Response, err error)
func (*ProjectService) IssueTypeFields ¶ added in v0.1.7
func (u *ProjectService) IssueTypeFields(opts *ProjectIssueTypeGetOption) (v *ProjectIssueTypeFieldsObject, resp *http.Response, err error)
func (*ProjectService) IssueTypeWorkflow ¶ added in v0.1.7
func (u *ProjectService) IssueTypeWorkflow(opts *ProjectIssueTypeGetOption) (v *ProjectIssueTypeGetObject, resp *http.Response, err error)
func (*ProjectService) Post ¶
func (u *ProjectService) Post(opts *ProjectPostOption) (v *ProjectPostObject, resp *http.Response, err error)
func (*ProjectService) Search ¶
func (u *ProjectService) Search(opts *ProjectSearchOption) (v *ProjectSearchObject, resp *http.Response, err error)
func (*ProjectService) Types ¶
func (u *ProjectService) Types(opts *ProjectTypeGetOption) (v *ProjectTypeGetObject, resp *http.Response, err error)
type ProjectStatusGetOptions ¶
type ProjectStatusGetOptions struct {
ProjectIdOrKey string `url:"projectIdOrKey"`
}
type ProjectStatusObject ¶
type ProjectStatusObject []PStatusObject
type ProjectTypeGetObject ¶
type ProjectTypeGetObject []ProjectTypeObject
type ProjectTypeGetOption ¶
type ProjectTypeGetOption struct{}
type ProjectTypeObject ¶
type RoleGetObject ¶ added in v0.1.4
type RoleGetObject RoleUserGetObject
type RoleGetOption ¶ added in v0.1.4
type RoleListObject ¶ added in v0.1.4
type RoleListObject []RoleObject
type RoleListOption ¶ added in v0.1.4
type RoleListOption struct{}
type RoleObject ¶ added in v0.1.4
type RolePGetsObject ¶ added in v0.1.4
type RolePGetsObject struct{}
type RolePostObject ¶ added in v0.1.4
type RolePostObject RoleUserGetObject
type RolePostOption ¶ added in v0.1.4
type RoleService ¶ added in v0.1.4
type RoleService struct {
// contains filtered or unexported fields
}
func (*RoleService) List ¶ added in v0.1.4
func (u *RoleService) List(opts *RoleListOption) (v *RoleListObject, resp *http.Response, err error)
func (*RoleService) PGet ¶ added in v0.1.4
func (u *RoleService) PGet(opts *RoleGetOption) (v *RoleGetObject, resp *http.Response, err error)
func (*RoleService) PGets ¶ added in v0.1.4
func (u *RoleService) PGets(opts *RoleGetOption) (v *interface{}, resp *http.Response, err error)
func (*RoleService) Post ¶ added in v0.1.4
func (u *RoleService) Post(opts *RolePostOption) (v *RolePostObject, resp *http.Response, err error)
type RoleUserDelObject ¶ added in v0.1.4
type RoleUserDelObject RoleUserGetObject
type RoleUserDelOption ¶ added in v0.1.4
type RoleUserGetObject ¶ added in v0.1.4
type RoleUserGetObject struct {
Self string `json:"self"`
Name string `json:"name"`
ID int `json:"id"`
Description string `json:"description"`
Actors []Actor `json:"actors"`
Scope RoleScope `json:"scope,omitempty"`
TranslatedName string `json:"translatedName,omitempty"`
CurrentUserRole bool `json:"currentUserRole,omitempty"`
Admin bool `json:"admin,omitempty"`
RoleConfigurable bool `json:"roleConfigurable,omitempty"`
Default bool `json:"default,omitempty"`
}
type RoleUserGetOption ¶ added in v0.1.4
type RoleUserPostObject ¶ added in v0.1.4
type RoleUserPostObject RoleUserGetObject
type RoleUserPostOption ¶ added in v0.1.4
type RoleUserService ¶ added in v0.1.4
type RoleUserService struct {
// contains filtered or unexported fields
}
func (*RoleUserService) DefaultDel ¶ added in v0.1.4
func (u *RoleUserService) DefaultDel(opts *RoleUserDelOption) (v *RoleUserDelObject, resp *http.Response, err error)
DefaultDel
func (*RoleUserService) DefaultGet ¶ added in v0.1.4
func (u *RoleUserService) DefaultGet(opts *RoleUserGetOption) (v *RoleUserGetObject, resp *http.Response, err error)
DefaultGet
func (*RoleUserService) DefaultPost ¶ added in v0.1.4
func (u *RoleUserService) DefaultPost(opts *RoleUserPostOption) (v *RoleUserPostObject, resp *http.Response, err error)
DefaultPost
func (*RoleUserService) Del ¶ added in v0.1.4
func (u *RoleUserService) Del(opts *RoleUserDelOption) (v *RoleUserDelObject, resp *http.Response, err error)
Del
func (*RoleUserService) Get ¶ added in v0.1.4
func (u *RoleUserService) Get(opts *RoleUserGetOption) (v *RoleUserGetObject, resp *http.Response, err error)
Get 项目级
func (*RoleUserService) Post ¶ added in v0.1.4
func (u *RoleUserService) Post(opts *RoleUserPostOption) (v *RoleUserPostObject, resp *http.Response, err error)
Post
type SchemeGetObject ¶
type SchemeGetObject struct {
Expand string `json:"expand"`
Self string `json:"self"`
ID string `json:"id"`
Name string `json:"name"`
DefaultIssueType IssueTypeObject `json:"defaultIssueType,omitempty"`
IssueTypes []IssueTypeObject `json:"issueTypes,omitempty"`
}
type SchemeGetOptions ¶
func (*SchemeGetOptions) Check ¶
func (s *SchemeGetOptions) Check()
type SchemeListObject ¶
type SchemeListObject struct {
Expand string `json:"expand"`
Schemes []SchemeObject `json:"schemes"`
}
type SchemeListOptions ¶
type SchemeListOptions struct{}
type SchemeObject ¶
type SchemeService ¶
type SchemeService struct {
// contains filtered or unexported fields
}
func (*SchemeService) Get ¶
func (u *SchemeService) Get(opts *SchemeGetOptions) (v *SchemeGetObject, resp *http.Response, err error)
func (*SchemeService) List ¶
func (u *SchemeService) List(opts *SchemeListOptions) (v *SchemeListObject, resp *http.Response, err error)
type SharedProjectObject ¶ added in v0.1.7
type StatusGetObject ¶
type StatusGetObject []StatusObject
type StatusGetOptions ¶
type StatusGetOptions struct {
IdOrName string `url:"idOrName"`
}
type StatusObject ¶
type StatusObject struct {
Self string `json:"self"`
Description string `json:"description"`
IconURL string `json:"iconUrl"`
Name string `json:"name"`
ID string `json:"id"`
StatusCategory struct {
Self string `json:"self"`
ID int `json:"id"`
Key string `json:"key"`
ColorName string `json:"colorName"`
Name string `json:"name"`
} `json:"statusCategory"`
}
type StatusService ¶
type StatusService struct {
// contains filtered or unexported fields
}
func (*StatusService) Get ¶
func (u *StatusService) Get(opts *StatusGetOptions) (v *StatusObject, resp *http.Response, err error)
func (*StatusService) List ¶
func (u *StatusService) List(opts *StatusGetOptions) (v *StatusGetObject, resp *http.Response, err error)
func (*StatusService) ProjectStatusGet ¶
func (u *StatusService) ProjectStatusGet(opts *ProjectStatusGetOptions) (v *ProjectStatusObject, resp *http.Response, err error)
type TTransition ¶
type TTransition struct {
ID string `json:"id"`
}
type TUpdate ¶
type TUpdate struct {
Comment []struct {
Add struct {
Body string `json:"body"`
} `json:"add"`
} `json:"comment"`
}
type TransitionsObject ¶
type TransitionsObject struct {
ID string `json:"id"`
Name string `json:"name"`
To StatusObject `json:"to"`
}
type TransitionsService ¶
type TransitionsService struct {
// contains filtered or unexported fields
}
func (*TransitionsService) Get ¶
func (u *TransitionsService) Get(opts *IssueTransitionsGetOption) (v *IssueTransitionsGetObject, resp *http.Response, err error)
issue流转
func (*TransitionsService) Post ¶
func (u *TransitionsService) Post(opts *IssueTransitionsPostOption) (v *IssueTransitionsPostObject, resp *http.Response, err error)
type UserAssignableObject ¶
type UserAssignableObject []UserObject
type UserAssignableOption ¶
type UserGetObject ¶
type UserGetObject struct {
Self string `json:"self"`
Key string `json:"key"`
Name string `json:"name"`
EmailAddress string `json:"emailAddress"`
AvatarUrls struct {
Four8X48 string `json:"48x48"`
Two4X24 string `json:"24x24"`
One6X16 string `json:"16x16"`
Three2X32 string `json:"32x32"`
} `json:"avatarUrls"`
DisplayName string `json:"displayName"`
Active bool `json:"active"`
TimeZone string `json:"timeZone"`
Locale string `json:"locale"`
Groups struct {
Size int `json:"size"`
Items []interface{} `json:"items"`
} `json:"groups"`
ApplicationRoles struct {
Size int `json:"size"`
Items []interface{} `json:"items"`
} `json:"applicationRoles"`
Expand string `json:"expand"`
}
type UserGetOption ¶
type UserObject ¶
type UserObject struct {
Self string `json:"self"`
Key string `json:"key"`
Name string `json:"name"`
EmailAddress string `json:"emailAddress"`
AvatarUrls struct {
Four8X48 string `json:"48x48"`
Two4X24 string `json:"24x24"`
One6X16 string `json:"16x16"`
Three2X32 string `json:"32x32"`
} `json:"avatarUrls"`
DisplayName string `json:"displayName"`
Active bool `json:"active"`
TimeZone string `json:"timeZone"`
Locale string `json:"locale"`
}
type UserSearchObject ¶
type UserSearchObject []UserObject
type UserSearchOption ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func (*UserService) Assignable ¶
func (u *UserService) Assignable(opts *UserAssignableOption) (v *UserAssignableObject, resp *http.Response, err error)
func (*UserService) Get ¶
func (u *UserService) Get(opts *UserGetOption) (v *UserGetObject, resp *http.Response, err error)
func (*UserService) Search ¶
func (u *UserService) Search(opts *UserSearchOption) (v *UserSearchObject, resp *http.Response, err error)
type ViewScreen ¶ added in v0.1.7
type WatcherGetObject ¶ added in v0.1.4
type WatcherGetObject struct {
Self string `json:"self"`
IsWatching bool `json:"isWatching"`
WatchCount int `json:"watchCount"`
Watchers []AuthorObject `json:"watchers"`
}
type WatcherObject ¶ added in v0.1.4
type WatcherObject struct{}
type WatcherOption ¶ added in v0.1.4
type WatcherService ¶ added in v0.1.4
type WatcherService struct {
// contains filtered or unexported fields
}
func (*WatcherService) Del ¶ added in v0.1.4
func (u *WatcherService) Del(opts *WatcherOption) (v *WatcherObject, resp *http.Response, err error)
func (*WatcherService) Get ¶ added in v0.1.4
func (u *WatcherService) Get(opts *WatcherOption) (v *WatcherGetObject, resp *http.Response, err error)
func (*WatcherService) Post ¶ added in v0.1.4
func (u *WatcherService) Post(opts *WatcherOption) (v *WatcherObject, resp *http.Response, err error)
type WorkflowGetObject ¶ added in v0.1.7
type WorkflowGetObject []WorkflowObject
type WorkflowGetOption ¶ added in v0.1.7
type WorkflowGetOption struct {
WorkflowName string `url:"workflowName"`
}
type WorkflowObject ¶ added in v0.1.7
type WorkflowService ¶ added in v0.1.7
type WorkflowService struct {
// contains filtered or unexported fields
}
func (*WorkflowService) Get ¶ added in v0.1.7
func (u *WorkflowService) Get(opts *WorkflowGetOption) (v *WorkflowGetObject, resp *http.Response, err error)
type WorklogObject ¶
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
example
|
|
|
assignee
command
|
|
|
comment
command
|
|
|
component
command
|
|
|
field
command
|
|
|
issue
command
|
|
|
issue_search
command
|
|
|
issuetype
command
|
|
|
priority
command
|
|
|
project_create
command
|
|
|
project_get
command
|
|
|
role
command
|
|
|
roleuser
command
|
|
|
scheme
command
|
|
|
status
command
|
|
|
transitions
command
|
|
|
user
command
|
|
|
watcher
command
|
|
|
workflow
command
|
Click to show internal directories.
Click to hide internal directories.