Ejemplo n.º 1
0
        public Epic GetEpic(String epicName)
        {
            Issue epicIssue = _jira.Client.GetEpicIssueFromProject(this.Name, epicName);

            epicIssue.SetJira(this.GetJira());
            return(Epic.FromIssue(epicIssue));
        }
Ejemplo n.º 2
0
        public Epic GetEpicByKey(String issueKey)
        {
            Issue epicIssue = _jira.Client.GetIssue(issueKey);

            epicIssue.SetJira(this.GetJira());
            return(Epic.FromIssue(epicIssue));
        }
Ejemplo n.º 3
0
        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());
        }
Ejemplo n.º 4
0
        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));
        }
Ejemplo n.º 5
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);
        }