diff --git a/board.go b/board.go index 27516872..403d1566 100644 --- a/board.go +++ b/board.go @@ -117,6 +117,8 @@ type BoardConfigurationColumnConfig struct { type BoardConfigurationColumn struct { Name string `json:"name"` Status []BoardConfigurationColumnStatus `json:"statuses"` + Min int `json:"min,omitempty"` + Max int `json:"max,omitempty"` } // BoardConfigurationColumnStatus represents a status in the column configuration diff --git a/board_test.go b/board_test.go index 982f29bb..11a5dc2d 100644 --- a/board_test.go +++ b/board_test.go @@ -248,4 +248,19 @@ func TestBoardService_GetBoardConfigoration(t *testing.T) { t.Errorf("Expected 6 columns. go %d", len(boardConfiguration.ColumnConfig.Columns)) } + backlogColumn := boardConfiguration.ColumnConfig.Columns[0] + if backlogColumn.Min != 5 { + t.Errorf("Expected a min of 5 issues in backlog. Got %d", backlogColumn.Min) + } + if backlogColumn.Max != 30 { + t.Errorf("Expected a max of 30 issues in backlog. Got %d", backlogColumn.Max) + } + + inProgressColumn := boardConfiguration.ColumnConfig.Columns[2] + if inProgressColumn.Min != 0 { + t.Errorf("Expected a min of 0 issues in progress. Got %d", inProgressColumn.Min) + } + if inProgressColumn.Max != 0 { + t.Errorf("Expected a max of 0 issues in progress. Got %d", inProgressColumn.Max) + } } diff --git a/mocks/board_configuration.json b/mocks/board_configuration.json index 9a4c1ec3..0bb9b3db 100644 --- a/mocks/board_configuration.json +++ b/mocks/board_configuration.json @@ -26,7 +26,9 @@ "id": "10005", "self": "https://test.jira.org/rest/api/2/status/10005" } - ] + ], + "min": 5, + "max": 30 }, { "name": "Selected for development",