public Epic GetEpic(String epicName) { Issue epicIssue = _jira.Client.GetEpicIssueFromProject(this.Name, epicName); epicIssue.SetJira(this.GetJira()); return(Epic.FromIssue(epicIssue)); }
public Epic GetEpicByKey(String issueKey) { Issue epicIssue = _jira.Client.GetIssue(issueKey); epicIssue.SetJira(this.GetJira()); return(Epic.FromIssue(epicIssue)); }
public List <Epic> GetEpics() { List <Issue> epicIssues = _jira.Client.GetEpicIssuesFromProject(this.Name); epicIssues.ForEach(epic => epic.SetJira(this.GetJira())); List <Epic> epics = epicIssues.Select(epic => Epic.FromIssue(epic)).ToList(); return(epics.OrderBy(epic => epic.Rank).ToList()); }
public Epic CreateEpic(String summary, IssueType type, User reporter) { Issue epic = new Issue() { Fields = new IssueFields() { Summary = summary, IssueType = type, Reporter = reporter } }; GetJira().Client.AddIssue(epic); epic.Load(); return(Epic.FromIssue(epic)); }
public List <Epic> GetEpics() { Epic undefinedEpic = Epic.UndefinedEpic; undefinedEpic.SetJira(this.GetJira()); Dictionary <Epic, List <Issue> > issuesByEpic = GetIssues().GroupBy(issue => issue.Epic != null ? issue.Epic : undefinedEpic).ToDictionary(group => group.Key, group => group.ToList()); List <Epic> epics = new List <Epic>(); foreach (Epic epic in issuesByEpic.Keys) { epic.LoadIssues(issuesByEpic[epic], this.StartDate, this.EndDate); epics.Add(epic); } return(epics); }