Exemplo n.º 1
0
        /// <summary>
        /// This method returns all of the issues which relate to this one.
        /// </summary>
        /// <returns>The list of issues which are relate to this one</returns>
        public List <Issue> GetRelatedIssues()
        {
            List <Issue> relatedIssues = IssueLinks.Where(link => link.Type.ToEnum() == IssueLinkType.IssueLinkTypeEnum.Relates).Select(link => (link.InwardIssue != null ? link.InwardIssue : link.OutwardIssue)).ToList();

            loadIssues(relatedIssues);

            return(relatedIssues);
        }
Exemplo n.º 2
0
        /// <summary>
        /// This method returns all of the issues which are duplicates from this one.
        /// </summary>
        /// <returns>The list of issues which are duplicates from this one</returns>
        public List <Issue> GetDuplicateIssues()
        {
            List <Issue> duplicateIssues = IssueLinks.Where(link => link.Type.ToEnum() == IssueLinkType.IssueLinkTypeEnum.Duplicate).Select(link => (link.InwardIssue != null ? link.InwardIssue : link.OutwardIssue)).ToList();

            loadIssues(duplicateIssues);

            return(duplicateIssues);
        }
Exemplo n.º 3
0
        /// <summary>
        /// This method returns all of the issues which are blocked by this one.
        /// </summary>
        /// <returns>The list of issues which are blocked by this one</returns>
        public List <Issue> GetImpactedIssues()
        {
            List <Issue> impactedIssues = IssueLinks.Where(link => link.Type.ToEnum() == IssueLinkType.IssueLinkTypeEnum.Blocks && link.OutwardIssue != null).Select(link => link.OutwardIssue).ToList();

            loadIssues(impactedIssues);

            return(impactedIssues);
        }
Exemplo n.º 4
0
        /// <summary>
        /// This method returns all issues which are blocking this one.
        /// </summary>
        /// <returns>The list of issues which are blocking this one</returns>
        public List <Issue> GetBlockingIssues()
        {
            List <Issue> blockingIssues = IssueLinks.Where(link => link.Type.ToEnum() == IssueLinkType.IssueLinkTypeEnum.Blocks && link.InwardIssue != null).Select(link => link.InwardIssue).ToList();

            loadIssues(blockingIssues);

            return(blockingIssues);
        }
Exemplo n.º 5
0
        /// <summary>
        /// This method returns all issues which where cloned from this one.
        /// </summary>
        /// <returns>The list of issues which where cloned from this one</returns>
        public List <Issue> GetClones()
        {
            List <Issue> clones = IssueLinks.Where(link => link.Type.ToEnum() == IssueLinkType.IssueLinkTypeEnum.Cloners && link.InwardIssue != null).Select(link => link.InwardIssue).ToList();

            loadIssues(clones);

            return(clones);
        }
Exemplo n.º 6
0
        /// <summary>
        /// This method returns all issues which where cloned from this one.
        /// </summary>
        /// <returns>The list of issues which where cloned from this one</returns>
        public Issue GetClonedIssue()
        {
            Issue cloned = IssueLinks.Where(link => link.Type.ToEnum() == IssueLinkType.IssueLinkTypeEnum.Cloners && link.OutwardIssue != null).Select(link => link.OutwardIssue).FirstOrDefault();

            if (cloned != null)
            {
                loadIssues(new List <Issue>()
                {
                    cloned
                });
            }

            return(cloned);
        }