Index: arms/html/jiraConnection/content-container.html =================================================================== diff -u -r27af33592ffd35f02ad7d9016db3e282aa2cda80 -re573883508df95fc7510119c002068ca64cbd897 --- arms/html/jiraConnection/content-container.html (.../content-container.html) (revision 27af33592ffd35f02ad7d9016db3e282aa2cda80) +++ arms/html/jiraConnection/content-container.html (.../content-container.html) (revision e573883508df95fc7510119c002068ca64cbd897) @@ -89,7 +89,7 @@
- +
@@ -572,11 +572,11 @@ - - - - - + + + + +
@@ -646,99 +646,99 @@ value="온프레미스"/> 온프레미스 - -
+ +
+
- -
- -
+
+ +
- - + + +
-
-
- -
+
+ +
- - + + 지라 아이디 +
-
-
- -
+
+ +
- - + + 암호 또는 토큰 +
-
-
- -
-
-
-

제품(서비스)의 기획서 및 Project Charter 의 내용을 기록합니다.

+
+ +
+
+
+

제품(서비스)의 기획서 및 Project Charter 의 내용을 기록합니다.

+
-
@@ -750,12 +750,12 @@ id="jira_project_table" style="width: 100%; overflow: hidden; border-top: 1px dashed rgba(51, 51, 51, 0.3)"> - - c_jira_name - c_desc - c_jira_key - c_id - + + c_jira_name + c_desc + c_jira_key + c_id +
@@ -982,11 +982,11 @@ class="display" style="width: 100%; overflow: hidden; border-top: 1px dashed rgba(51, 51, 51, 0.3)"> - - c_id - c_issue_type_id - c_issue_type_name - + + c_id + c_issue_type_id + c_issue_type_name +
@@ -1035,7 +1035,7 @@ 신규 지라 서버 등록 팝업
+ style="border-left: 5px solid #e5603b">

a-RMS에 지라 서버를 등록합니다.

@@ -1238,7 +1238,7 @@ 지라(서버) 수정 팝업
+ style="border-left: 5px solid #e5603b">

a-RMS에 등록된 지라 서버를 수정합니다.

@@ -1322,7 +1322,7 @@ 온프레미스
- +
@@ -1386,7 +1386,7 @@
-
${cardList[i].c_id}
+ ${draw_ribbon_result_of_issueType_check(cardList[i])}
@@ -186,14 +186,23 @@
-

- 불러온 프로젝트 수: ${cardList[i].jiraProjectEntities.length} - 프로젝트 - 이슈타입 - 이슈우선순위 - 이슈해결책 - 이슈상태 -

+

+ 프로젝트 + ${chk_default_settings_icon(cardList[i].jiraProjectEntities)} + + 이슈유형 + ${num_of_issue_type_and_status(cardList[i], "이슈유형")} + + 이슈우선순위 + ${chk_default_settings_icon(cardList[i].jiraIssuePriorityEntities)} + + 이슈해결책 + ${chk_default_settings_icon(cardList[i].jiraIssueResolutionEntities)} + + 이슈상태 + ${num_of_issue_type_and_status(cardList[i], "이슈상태")} +

+
@@ -472,10 +481,7 @@ function dataTableDrawCallback(tableInfo) { console.log(tableInfo); - /*$("#" + tableInfo.sInstance) - .DataTable() - .columns.adjust() - .responsive.recalc();*/ + var className = ""; if(selectedTab !== undefined) { if (selectedTab === "이슈해결책") { className = "issueResolution"; } @@ -493,18 +499,15 @@ if(!isEmpty(tableData)) { tableData.forEach(function (rowInfo, index) { var tableRowData = rowInfo._aData; - console.log("index ===> " + index); - console.log(tableRowData); - var rowCid = tableRowData.c_id; var rowIsDefault = tableRowData.c_check; var rowNameClass = "." + className + "-data" + index; var appendHtml = rowNameClass+">input"; if (rowIsDefault ==="true") { - console.log("rowIsDefault is true"); + //console.log("rowIsDefault is true"); $(appendHtml).prop("checked", "true"); } else { - console.log("rowIsDefault is not true"); + //console.log("rowIsDefault is not true"); } }); @@ -675,8 +678,6 @@ c_id: selectId, c_title: $("#editview_jira_server_name").val(), c_jira_server_name: $("#editview_jira_server_name").val(), -// c_jira_server_base_url: $("#editview_jira_server_base_url").val(), -// c_jira_server_type: $("#editview_jira_server_type input[name='options']:checked").val(), //클라우드, on-premise c_jira_server_connect_id: $("#editview_jira_server_connect_id").val(), c_jira_server_connect_pw: $("#editview_jira_pass_token").val(), c_jira_server_contents: CKEDITOR.instances.input_jira_server_editor.getData() @@ -705,8 +706,6 @@ c_id: selectId, c_title: $("#extend_editview_jira_server_name").val(), c_jira_server_name: $("#extend_editview_jira_server_name").val(), -// c_jira_server_base_url: $("#extend_editview_jira_server_base_url").val(), -// c_jira_server_type: $("#extend_editview_jira_server_type input[name='options']:checked").val(), //클라우드, on-premise c_jira_server_connect_id: $("#extend_editview_jira_server_connect_id").val(), c_jira_server_connect_pw: $("#editview_jira_pass_token").val(), c_jira_server_contents: CKEDITOR.instances.extend_modal_editor.getData() @@ -970,21 +969,7 @@ } ]; var rowsGroupList = null; //그룹을 안쓰려면 null 처리 - var columnDefList = [ - /* - { - targets: 0, - searchable: false, - orderable: false, - render: function(data, type, full, meta){ - if(type === 'display'){ - data = ''; - } - return data; - } - } - */ - ]; + var columnDefList = []; var selectList = {}; var orderList = [[1, "asc"]]; var buttonList = []; @@ -1053,8 +1038,7 @@ }, className: "dt-body-left", visible: true - }/*, - { name: "c_check", title: "c_check", data: "c_check", visible: false },*/ + } ]; var rowsGroupList = []; //그룹을 안쓰려면 null 처리 var columnDefList = []; @@ -1321,77 +1305,6 @@ console.log("selectRadioId in urlHandler : " + selectRadioId); } -function projectIssueTypeDataTable_old(idx) { - console.log("issueType DataTable"); - var issue_types = ""; - console.log(idx); - console.log(selectProjectList[idx]); - console.log(" === === === === === "); - if (idx !== "") { - if (selectProjectList[idx] !== undefined) { - console.log(selectProjectList[idx].jiraIssueTypeEntities); - issue_types = selectProjectList[idx].jiraIssueTypeEntities; - - } - } - var columnList_type= [ - { title:"설정", - data: "c_id", - className: "dt-body-left texe-align-center", - defaultContent: "
N/A
" - }, - { title:"이슈 타입 아이디", - data: "c_issue_type_id", - className: "dt-body-left", - defaultContent: "
N/A
" - }, - { title:"이슈 타입", - data: "c_issue_type_name", - render: function (data, type, row, meta) { - if (type === "display") { - if (isEmpty(data)) { - return "
N/A
"; - } else { - return '
' + data + "
"; - } - } - return data; - }, - className: "dt-body-left", - visible: true - } - ]; - var rowsGroupList = null; //그룹을 안쓰려면 null 처리 - var columnDefList = [ - { - targets: 0, - searchable: false, - orderable: false, - render: function(data, type, full, meta){ - if(type === 'display'){ - data = ''; - } - return data; - } - } - ]; - $("#issue_type_table").DataTable({ - data: issue_types, - stateSave: true, - destroy: true, - processing: true, - responsive: true, - columns: columnList_type, - rowsGroup: rowsGroupList, - columnDefs: columnDefList - }); - - // ----- 데이터 테이블 빌드 이후 스타일 구성 ------ // - //datatable 좌상단 datarow combobox style - $(".dataTables_length").find("select:eq(0)").addClass("darkBack"); - $(".dataTables_length").find("select:eq(0)").css("min-height", "30px"); -} - function default_setting_event() { var ajax_url =""; var sourceCid = ""; @@ -1433,7 +1346,7 @@ //지라 프로젝트 - 데이터테이블 프로젝트 명 클릭시 function click_projectList_table(projectName) { - console.log("click_projectList_table :: projectName =>> " + projectName); + console.log("click_projectList_table :: projectName = " + projectName); // Sender 설정 var selectedHtml = @@ -1471,6 +1384,7 @@ setTimeout(function () { $("#nav_issue_type>a").click(); + selectedTab = "이슈유형" projectIssueTypeDataTable(); }, 313); } @@ -1503,3 +1417,158 @@ }); } +function chk_default_settings_icon(list) { + // list에 cardList.jiraIssueResolutionEntities 이런거 + var check_default_set = "false"; + //console.log(list); + if(list.length != 0) { + //console.log("list.length ===> " + list.length); + if(!isEmpty(list[0].c_check)){ + list.forEach(function (info, index){ + //console.log(index); + //console.log(info.c_check); + if (info.c_check ==="true"){ + check_default_set ="true"; + } + }); + if (check_default_set ==="false") { + return ": " +list.length + + `` + + ``; + } else if (check_default_set ==="true") { + return ": "+list.length+``; + } + } else { //project를 위함 + return ": "+list.length+``; + } + } else { + //console.log("list.length is 0"); + return ``; + } +} + +function num_of_issue_type_and_status(list, type) { // cardList, "이슈상태" || "이슈유형" 들어올듯. + var arr = []; var chk_result =""; + if (list.c_jira_server_type === "클라우드") { + var check_default_set; + var 기본값_설정이_안된_프로젝트 = ""; + arr = list.jiraProjectEntities; // 프로젝트 리스트 + // 클라우드서버 이슈유형 + if (type ==="이슈유형") { + 기본값_설정이_안된_프로젝트 = ""; + var type_cnt = 0; + for(var i = 0; i < arr.length ; i++) { + check_default_set = "false"; + arr[i].jiraIssueTypeEntities.forEach(function (info, index) { + if (info.c_check === "true") { + check_default_set = "true"; + } + }); + if(check_default_set !== "true") { + 기본값_설정이_안된_프로젝트 += "'"+arr[i].c_jira_name +"' "; + } + type_cnt += arr[i].jiraIssueTypeEntities.length; + } + if(기본값_설정이_안된_프로젝트 !== "") { // 기본값 설정이 안된 프로젝트가 존재함 + //console.log("기본값_설정이_안된_프로젝트 : " + 기본값_설정이_안된_프로젝트); + return `: `+type_cnt+``; + } else { + //console.log("기본값_설정이_안된_프로젝트 : " + 기본값_설정이_안된_프로젝트); + return ": "+type_cnt+``; + } + } + // 클라우드서버 이슈상태 + if (type === "이슈상태") { + var status_cnt = 0; + 기본값_설정이_안된_프로젝트 = ""; + for(var i = 0; i < arr.length ; i++) { + check_default_set = "false"; + arr[i].jiraIssueStatusEntities.forEach(function (info, index) { + //console.log(info); + if (info.c_check === "true") { + check_default_set = "true"; + } + }); + if(check_default_set !== "true") { + 기본값_설정이_안된_프로젝트 += arr[i].c_jira_name +" "; + } + status_cnt += arr[i].jiraIssueStatusEntities.length; + //console.log("status_cnt ==> " +status_cnt+ "("+i+")"); + } + if(기본값_설정이_안된_프로젝트 !== "") { // 기본값 설정이 안된 프로젝트가 존재함 + console.log("기본값_설정이_안된_프로젝트 : " + 기본값_설정이_안된_프로젝트); + return `: `+status_cnt+`` + + } else { + //console.log("기본값_설정이_안된_프로젝트 : " + 기본값_설정이_안된_프로젝트); + return ": "+status_cnt+``; + } + } + + + + } + if (list.c_jira_server_type === "온프레미스") { + if (type === "이슈유형") { + return chk_default_settings_icon(list.jiraIssueTypeEntities); } + if (type === "이슈상태") { + //console.log("이슈상태_갯수") + //console.log(list.jiraIssueStatusEntities); + return chk_default_settings_icon(list.jiraIssueStatusEntities); } + } +} + + + +// arms-requirement 존재 확인해서 리본 그리기 +function draw_ribbon_result_of_issueType_check(list) { + var arr = []; var chk_result =""; + if (list.c_jira_server_type === "클라우드") { + arr = list.jiraProjectEntities; // 프로젝트 리스트 + var issueTypeList = []; + var 이슈타입_없는_프로젝트명 =""; + for(var i = 0; i < arr.length ; i++) { + issueTypeList = arr[i].jiraIssueTypeEntities; // 이슈타입들의 목록 + chk_result = chk_issue_type_whether_have_arms_requirement(issueTypeList); + if (chk_result === "true") { console.log(arr[i].c_jira_name + "은 arms-requirement 있음"); } + else { + 이슈타입_없는_프로젝트명 += arr[i].c_jira_name+ " "; + } + } + if (이슈타입_없는_프로젝트명 !== "") { // 이슈타입으로 arms-requirement가 없는 프로젝트 존재 + console.log(이슈타입_없는_프로젝트명); + return `
Help
`; + } else { + return `
Ready
`; + } + } + if (list.c_jira_server_type =="온프레미스") { + arr = list.jiraIssueTypeEntities; + chk_result = chk_issue_type_whether_have_arms_requirement(arr); + if (chk_result === "true") { + return `
Ready
`; + } else if (chk_result == "false") { // 이슈타입은 있지만, arms-requirement가 없음 + var htmlData = `
Help
` + return htmlData; + } else { // undefined - 이슈 타입 자체가 없음 + return `
Nothing
`; + } + //style="color: red;" + } +} + +//이슈유형(타입)에 arms-requirement 가 있는지 확인 +function chk_issue_type_whether_have_arms_requirement(list) { + var arr = list; var chk_result = "false"; + if (arr.length != 0) { + arr.forEach( function (info, index) { + if (info.c_issue_type_name === "arms-requirement") { + chk_result = "true"; + } + }); + return chk_result; + } else { // arr.length 양의 정수가 아님 + chk_result = ""; + return chk_result; // undefined + } +} \ No newline at end of file Index: reference/jquery-plugins/select2-4.0.2/dist/css/jira_server_connection.css =================================================================== diff -u -r90586071569a527fae484e7bd7ebe1b5645cddd0 -re573883508df95fc7510119c002068ca64cbd897 --- reference/jquery-plugins/select2-4.0.2/dist/css/jira_server_connection.css (.../jira_server_connection.css) (revision 90586071569a527fae484e7bd7ebe1b5645cddd0) +++ reference/jquery-plugins/select2-4.0.2/dist/css/jira_server_connection.css (.../jira_server_connection.css) (revision e573883508df95fc7510119c002068ca64cbd897) @@ -254,8 +254,10 @@ top: 0.75rem; left: 0.75rem; } +.card-body .card-detail { + vertical-align: middle; +} - .card-body .flex-grow-1 { flex-grow: 1 !important; }