public Sprint GetSprintByID(int sprintID) { Sprint sprint = _jira.Client.GetSprint(this.ID.Value, sprintID); if (sprint != null) { sprint.SetJira(_jira); } return(sprint); }
public Sprint GetSprintDetail(Sprint sprint) { Sprint detailedSprint = GetSprintByID(sprint.ID.Value); if (detailedSprint == null) { detailedSprint = sprint; } detailedSprint.SetJira(_jira); return(detailedSprint); }
public List <User> GetUserDetailsForPeriod(DateTime from, DateTime until, List <Issue> additionalIssues) { List <User> userDetails = new List <User>(); List <Sprint> sprints = GetSprintsBetween(from, until); Sprint firstSprint = sprints.FirstOrDefault(); if (additionalIssues == null) { additionalIssues = new List <Issue>(); } if (firstSprint != null) { sprints.Remove(firstSprint); additionalIssues.AddRange(sprints.SelectMany(sprint => sprint.GetIssues())); userDetails = firstSprint.GetAssignableUsers(additionalIssues, from, until); } return(userDetails); }