function showRallyBuildDetail(data, status) {
            var resultData = [];
            resultData = data;
            switch (status) {
                case "Accepted":
                    resultData = _.filter(data, function(item) {
                        return item.state === "Accepted"
                    });
                    break;
                case "Completed":
                    resultData = _.filter(data, function(item) {
                        return item.state === "Completed"
                    });
                    break;
                case "In Progress":
                    resultData = _.filter(data, function(item) {
                        return item.state === "In Progress"
                    });
                    break;
                case "Defined":
                    resultData = _.filter(data, function(item) {
                        return item.state === "Defined"
                    });
                    break;
                default:
                    resultData = data;
            }
            $uibModal.open({
                controller: 'RallyBuildDetailController',
                controllerAs: 'rallyBuildDetail',
                templateUrl: 'components/widgets/rally/rallyBuildDetail.html',
                size: 'lg',
                resolve: {
                    resultData: function() {
                        return resultData;
                    }
                }
            });
        }
//To show the userstroies involved in the current iteration
To show the userstroies involved in the current iteration
To show the userstroies involved in the current iteration
function showRallyBuildDetail(data, status) {
            var resultData = [];
            resultData = data;
            switch (status) {
                case "Accepted":
                    resultData = _.filter(data, function(item) {
                        return item.state === "Accepted"
                    });
                    break;
                case "Completed":
                    resultData = _.filter(data, function(item) {
                        return item.state === "Completed"
                    });
                    break;
                case "In Progress":
                    resultData = _.filter(data, function(item) {
                        return item.state === "In Progress"
                    });
                    break;
                case "Defined":
                    resultData = _.filter(data, function(item) {
                        return item.state === "Defined"
                    });
                    break;
                default:
                    resultData = data;
            }
            $uibModal.open({
                controller: 'RallyBuildDetailController',
                controllerAs: 'rallyBuildDetail',
                templateUrl: 'components/widgets/rally/rallyBuildDetail.html',
                size: 'lg',
                resolve: {
                    resultData: function() {
                        return resultData;
                    }
                }
            });
        }
function showRallyBuildDetail ( data , status ) { var resultData = [ ] ; resultData = data ; switch ( status ) { case "Accepted" : resultData = _ . filter ( data , function ( item ) { return item . state === "Accepted" } ) ; break ; case "Completed" : resultData = _ . filter ( data , function ( item ) { return item . state === "Completed" } ) ; break ; case "In Progress" : resultData = _ . filter ( data , function ( item ) { return item . state === "In Progress" } ) ; break ; case "Defined" : resultData = _ . filter ( data , function ( item ) { return item . state === "Defined" } ) ; break ; default : resultData = data ; } $uibModal . open ( { controller : 'RallyBuildDetailController' , controllerAs : 'rallyBuildDetail' , templateUrl : 'components/widgets/rally/rallyBuildDetail.html' , size : 'lg' , resolve : { resultData : function ( ) { return resultData ; } } } ) ; }
To show the userstroies involved in the current iteration
To show the userstroies involved in the current iteration