File tree 3 files changed +20
-1
lines changed
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ type BoardConfigurationColumnConfig struct {
117
117
type BoardConfigurationColumn struct {
118
118
Name string `json:"name"`
119
119
Status []BoardConfigurationColumnStatus `json:"statuses"`
120
+ Min int `json:"min,omitempty"`
121
+ Max int `json:"max,omitempty"`
120
122
}
121
123
122
124
// BoardConfigurationColumnStatus represents a status in the column configuration
Original file line number Diff line number Diff line change @@ -248,4 +248,19 @@ func TestBoardService_GetBoardConfigoration(t *testing.T) {
248
248
t .Errorf ("Expected 6 columns. go %d" , len (boardConfiguration .ColumnConfig .Columns ))
249
249
}
250
250
251
+ backlogColumn := boardConfiguration .ColumnConfig .Columns [0 ]
252
+ if backlogColumn .Min != 5 {
253
+ t .Errorf ("Expected a min of 5 issues in backlog. Got %d" , backlogColumn .Min )
254
+ }
255
+ if backlogColumn .Max != 30 {
256
+ t .Errorf ("Expected a max of 30 issues in backlog. Got %d" , backlogColumn .Max )
257
+ }
258
+
259
+ inProgressColumn := boardConfiguration .ColumnConfig .Columns [2 ]
260
+ if inProgressColumn .Min != 0 {
261
+ t .Errorf ("Expected a min of 0 issues in progress. Got %d" , inProgressColumn .Min )
262
+ }
263
+ if inProgressColumn .Max != 0 {
264
+ t .Errorf ("Expected a max of 0 issues in progress. Got %d" , inProgressColumn .Max )
265
+ }
251
266
}
Original file line number Diff line number Diff line change 26
26
"id" : " 10005" ,
27
27
"self" : " https://test.jira.org/rest/api/2/status/10005"
28
28
}
29
- ]
29
+ ],
30
+ "min" : 5 ,
31
+ "max" : 30
30
32
},
31
33
{
32
34
"name" : " Selected for development" ,
You can’t perform that action at this time.
0 commit comments