示例#1
0
        public Epic GetEpicByKey(string issueKey)
        {
            Issue epicIssue = _jira.Client.GetIssue(issueKey);

            epicIssue.SetJira(this.GetJira());
            return(Epic.FromIssue(epicIssue));
        }
示例#2
0
        public Epic GetEpic(string epicName)
        {
            Issue epicIssue = _jira.Client.GetEpicIssueFromProject(this.Name, epicName);

            epicIssue.SetJira(this.GetJira());
            return(Epic.FromIssue(epicIssue));
        }
示例#3
0
        public List <Epic> GetEpics()
        {
            List <Issue> epicIssues = _jira.Client.GetEpicIssuesFromProject(this.Name).Issues;

            epicIssues.ForEach(epic => epic.SetJira(this.GetJira()));

            List <Epic> epics = epicIssues.Select(epic => Epic.FromIssue(epic)).ToList();

            return(epics.OrderBy(epic => epic.Rank).ToList());
        }
示例#4
0
        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);
        }