Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add sprint goal #463

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions board.go
Expand Up @@ -73,6 +73,7 @@ type Sprint struct {
OriginBoardID int `json:"originBoardId" structs:"originBoardId"`
Self string `json:"self" structs:"self"`
State string `json:"state" structs:"state"`
Goal string `json:"goal,omitempty" structs:"goal"`
}

// BoardConfiguration represents a boardConfiguration of a jira board
Expand Down
4 changes: 2 additions & 2 deletions board_test.go
Expand Up @@ -181,8 +181,8 @@ func TestBoardService_GetAllSprints(t *testing.T) {
t.Error("Expected sprint list. Got nil.")
}

if len(sprints) != 4 {
t.Errorf("Expected 4 transitions. Got %d", len(sprints))
if len(sprints) != 6 {
t.Errorf("Expected 6 transitions. Got %d", len(sprints))
}
}

Expand Down
15 changes: 15 additions & 0 deletions mocks/sprints.json
Expand Up @@ -41,6 +41,21 @@
"self": "https://jira.com/rest/agile/1.0/sprint/832",
"startDate": "2016-06-20T13:24:39.161-07:00",
"state": "active"
},
{
"id": 845,
"self":"https://jira.com/rest/agile/1.0/sprint/845",
"state": "future",
"name": "Minimal Example Sprint",
"originBoardId": 734
},
{
"id": 846,
"self": "https://jira.com/rest/agile/1.0/sprint/846",
"state": "future",
"name": "Sprint with a Goal",
"originBoardId": 734,
"goal": "My Goal"
}
]
}