@@ -33,11 +33,21 @@ type IssueBoardsService struct {
33
33
//
34
34
// GitLab API docs: https://docs.gitlab.com/ce/api/boards.html
35
35
type IssueBoard struct {
36
- ID int `json:"id"`
37
- Name string `json:"name"`
38
- Project * Project `json:"project"`
39
- Milestone * Milestone `json:"milestone"`
40
- Lists []* BoardList `json:"lists"`
36
+ ID int `json:"id"`
37
+ Name string `json:"name"`
38
+ Project * Project `json:"project"`
39
+ Milestone * Milestone `json:"milestone"`
40
+ Assignee * struct {
41
+ ID int `json:"id"`
42
+ Username string `json:"username"`
43
+ Name string `json:"name"`
44
+ State string `json:"state"`
45
+ AvatarURL string `json:"avatar_url"`
46
+ WebURL string `json:"web_url"`
47
+ } `json:"assignee"`
48
+ Lists []* BoardList `json:"lists"`
49
+ Weight int `json:"weight"`
50
+ Labels []* LabelDetails `json:"labels"`
41
51
}
42
52
43
53
func (b IssueBoard ) String () string {
@@ -48,9 +58,18 @@ func (b IssueBoard) String() string {
48
58
//
49
59
// GitLab API docs: https://docs.gitlab.com/ce/api/boards.html
50
60
type BoardList struct {
51
- ID int `json:"id"`
52
- Label * Label `json:"label"`
53
- Position int `json:"position"`
61
+ ID int `json:"id"`
62
+ Assignee * struct {
63
+ ID int `json:"id"`
64
+ Name string `json:"name"`
65
+ Username string `json:"username"`
66
+ } `json:"assignee"`
67
+ Iteration * ProjectIteration `json:"iteration"`
68
+ Label * Label `json:"label"`
69
+ MaxIssueCount int `json:"max_issue_count"`
70
+ MaxIssueWeight int `json:"max_issue_weight"`
71
+ Milestone * Milestone `json:"milestone"`
72
+ Position int `json:"position"`
54
73
}
55
74
56
75
func (b BoardList ) String () string {
@@ -257,7 +276,10 @@ func (s *IssueBoardsService) GetIssueBoardList(pid interface{}, board, list int,
257
276
//
258
277
// GitLab API docs: https://docs.gitlab.com/ce/api/boards.html#new-board-list
259
278
type CreateIssueBoardListOptions struct {
260
- LabelID * int `url:"label_id" json:"label_id"`
279
+ LabelID * int `url:"label_id,omitempty" json:"label_id,omitempty"`
280
+ AssigneeID * int `url:"assignee_id,omitempty" json:"assignee_id,omitempty"`
281
+ MilestoneID * int `url:"milestone_id,omitempty" json:"milestone_id,omitempty"`
282
+ IterationID * int `url:"iteration_id,omitempty" json:"iteration_id,omitempty"`
261
283
}
262
284
263
285
// CreateIssueBoardList creates a new issue board list.
0 commit comments