Пример #1
0
        public ProjectDetails GetProjectDetails(string username, string password, string projectName)
        {
            rally = new Rally(username, password);
            if (rally.IsAuthenticated)
            {
                var            workspace      = rally.GetAllWorkSpaces().Results.First();
                var            projects       = rally.GetAllProjects(workspace);
                var            atlas          = rally.GetProject(projectName, projects);
                var            defects        = rally.GetAllDefects();
                ProjectDetails projectDetails = new ProjectDetails();
                projectDetails.TotalIteration   = rally.GetItrs(atlas).Results.Count;
                projectDetails.TotalUsers       = rally.GetAllTeamMembers(atlas).Results.Count;
                projectDetails.TotalDefects     = defects.Results.Count();
                projectDetails.TotalUserStories = rally.GetTotalUserStories();

                return(projectDetails);
            }

            return(null);
        }
Пример #2
0
        public IEnumerable <IterationDetails> GetIterationDetails(string username, string password, string projectName)
        {
            rally = new Rally(username, password);
            var workspace = rally.GetAllWorkSpaces().Results.First();
            var projects  = rally.GetAllProjects(workspace);
            var atlas     = rally.GetProject(projectName, projects);
            var Itrs      = rally.GetItrs(atlas);
            List <IterationDetails> AllIterationDetails = new List <IterationDetails>();

            foreach (var itr in Itrs.Results)
            {
                IterationDetails iterationDetails = new IterationDetails();
                iterationDetails.Name      = itr["Name"];
                iterationDetails.StartDate = itr["StartDate"];
                iterationDetails.EndDate   = itr["EndDate"];
                iterationDetails.State     = itr["State"];
                AllIterationDetails.Add(iterationDetails);
            }

            return(AllIterationDetails);
        }