Skip to content

Commit

Permalink
Added ability to fetch single sprint
Browse files Browse the repository at this point in the history
  • Loading branch information
expobrain committed Jul 30, 2018
1 parent 66e0669 commit 12b6934
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sprints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ impl Sprints {
.get::<SprintResults>("agile", path.join("?").as_ref())
}

/// returns a single sprint data
/// https://docs.atlassian.com/jira-software/REST/7.3.1/#agile/1.0/sprint-getSprint
pub fn get(&self, sprint_id: u64) -> Result<Sprint> {
let path = format!("/sprint/{}", sprint_id);

self.jira.get::<Sprint>("agile", &path)
}

/// runs a type why may be used to iterate over consecutive pages of results
/// https://docs.atlassian.com/jira-software/REST/latest/#agile/1.0/board-getAllBoards
pub fn iter<'a>(
Expand Down

0 comments on commit 12b6934

Please sign in to comment.