Index: arms/html/dashboard/content-container.html =================================================================== diff -u -r8791636e59bb18c31ea79b45e84ac86927efc29d -r57d3bd09eedd2710773999202594693e8a541e4f --- arms/html/dashboard/content-container.html (.../content-container.html) (revision 8791636e59bb18c31ea79b45e84ac86927efc29d) +++ arms/html/dashboard/content-container.html (.../content-container.html) (revision 57d3bd09eedd2710773999202594693e8a541e4f) @@ -86,8 +86,8 @@ -
-
+
+

- 이번 달에 진행 중인 요구사항 + 진행 중인 요구사항
+
+ +
-
-
+
+

- 이번 달에 해결된 요구사항 + 해결된 요구사항
+
+ / + +
Index: arms/js/dashboard.js =================================================================== diff -u -rd6fd2570ed3e7025a385b5bc8c34e7da6904a733 -r57d3bd09eedd2710773999202594693e8a541e4f --- arms/js/dashboard.js (.../dashboard.js) (revision d6fd2570ed3e7025a385b5bc8c34e7da6904a733) +++ arms/js/dashboard.js (.../dashboard.js) (revision 57d3bd09eedd2710773999202594693e8a541e4f) @@ -126,11 +126,11 @@ endPointUrl = "/T_ARMS_REQSTATUS_" + $("#selected_pdService").val() + "/getStatusMonitor.do?disable=false"; } - // //이슈리스트 데이터테이블 - // dataTableLoad($("#selected_pdService").val(), endPointUrl); - // //통계로드 - // statisticsLoad($("#selected_pdService").val(), null); - // //진행상태 가져오기 + //이슈리스트 진행 상황 + getIssueStatus($("#selected_pdService").val(), endPointUrl); + //통계로드 + statisticsLoad($("#selected_pdService").val(), null); + //진행상태 가져오기 // progressLoad($("#selected_pdService").val(), null); }); @@ -178,11 +178,7 @@ console.log(key + "=" + value); } - $('#version_count').text(data["version"]); $('#req_count').text(data["req"]); - $('#alm_server_count').text(data["jiraServer"]); - $('#alm_project_count').text(data["jiraProject"]); - $('#alm_issue_count').text(data["issue"]); } } }); @@ -235,3 +231,32 @@ }); } +//////////////////////////////////////////////////////////////////////////////////////// +//이슈 리스트 진행 상황 +//////////////////////////////////////////////////////////////////////////////////////// +function getIssueStatus(selectId, endPointUrl) { + $.ajax({ + url: "/auth-user/api/arms/reqStatus" + endPointUrl, + type: "GET", + dataType: "json", + progress: true, + statusCode: { + 200: function (data) { + ////////////////////////////////////////////////////////// + var resolvedCount = 0; + var closedCount = 0; + for (var k in data) { + var obj = data[k]; + if (obj.state === "resolve") { + resolvedCount++; + } else if (obj.state === "closed") { + closedCount++; + } + } + $("#resolved_count").text(resolvedCount); + $("#closed_count").text(closedCount); + ////////////////////////////////////////////////////////// + } + } + }); +}