Index: arms/html/jiraConnection/content-container.html
===================================================================
diff -u -r18fe88beb998d9fd95a97719c4e3ee226a3f0cd7 -r90586071569a527fae484e7bd7ebe1b5645cddd0
--- arms/html/jiraConnection/content-container.html (.../content-container.html) (revision 18fe88beb998d9fd95a97719c4e3ee226a3f0cd7)
+++ arms/html/jiraConnection/content-container.html (.../content-container.html) (revision 90586071569a527fae484e7bd7ebe1b5645cddd0)
@@ -340,6 +340,16 @@
지라(서버) 삭제
+
@@ -592,8 +611,8 @@
class="form-control parsley-validated font13 darkBack"
style="color: #a4c6ff; background: rgba(50, 50, 50, 0.99) !important"
placeholder="JIRA BASE URL"
- required="required" />
-
@@ -665,6 +684,21 @@
+
@@ -206,9 +210,9 @@
var columnList = [
{ name: "c_id", title: "지라(서버) 아이디", data: "c_id", visible: false },
{
- name: "c_jira_server_name",
- title: "지라(서버) 이름",
- data: "c_title", //"c_jira_server_name"
+ name: "c_jira_name",
+ title: "프로젝트 이름",
+ data: "jiraProjectEntities",
render: function (data, type, row, meta) {
if (type === "display") {
return '
";
@@ -242,7 +246,6 @@
var buttonList = [];
var jquerySelector = "#jira_connection_table"; //
- //var ajaxUrl = "/auth-user/api/arms/pdService/getPdServiceMonitor.do";
var ajaxUrl = "/auth-user/api/arms/jiraServer/getJiraServerMonitor.do"; // 사용 예정
var jsonRoot = "response";
var isServerSide = false;
@@ -290,8 +293,23 @@
})
// HTTP 요청이 성공하면 요청한 데이터가 done() 메소드로 전달됨.
.done(function (json) {
+ //console.log(json); console.log(json.jiraProjectEntities);
-
+ //지라 프로젝트 데이터테이블
+ projectDataTable(json.jiraProjectEntities);
+
+ //지라 프로젝트 갱신버튼 c_id 설정
+ $("#jira_project_renew_div").html("");
+ var renewProjectBtnHtml = `
+
+ `;
+ $("#jira_project_renew_div").html(renewProjectBtnHtml);
+
// Sender 설정
var selectedHtml =
`
@@ -462,7 +480,10 @@
$("#regist_jira_server").click(function () {
if($("#popup_editview_jira_server_name").val() !== "") { // 서버 이름
if($("#popup_editview_jira_server_type input[name='options']:checked").val() !== undefined) { // 지라환경 선택여부
-
+ console.log("Base URL==> " + $("#popup_editview_jira_server_base_url").val());
+ console.log("c_jira_server_type==> " + $("#popup_editview_jira_server_type input[name='options']:checked").val());
+ console.log("c_jira_server_connect_id==> " + $("#popup_editview_jira_server_connect_id").val());
+ console.log("c_jira_server_connect_pw==> " + $("#popup_editview_jira_pass_token").val());
$.ajax({
url: "/auth-user/api/arms/jiraServer/addJiraServerNode.do",
type: "POST",
@@ -520,8 +541,8 @@
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(), //cloud, on-premise
+// c_jira_server_base_url: $("#editview_jira_server_base_url").val(),
+// c_jira_server_type: $("#editview_jira_server_type input[name='options']:checked").val(), //cloud, 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()
@@ -550,8 +571,8 @@
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(), //cloud, on-premise
+// 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(), //cloud, 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()
@@ -612,6 +633,7 @@
$("#jira_server_details_popup_div").addClass("hidden");
$("#jira_server_update_div").addClass("hidden");
$("#jira_server_delete_div").removeClass("hidden");
+ $("#jira_project_renew_div").addClass("hidden");
$(".body-middle").hide();
@@ -622,12 +644,17 @@
$("#jira_server_details_popup_div").addClass("hidden");
$("#jira_server_update_div").removeClass("hidden");
$("#jira_server_delete_div").addClass("hidden");
-
- } else {
+ $("#jira_project_renew_div").addClass("hidden");
+ } else if (target == "#related_project") {
+ $("#jira_server_details_popup_div").addClass("hidden");
+ $("#jira_server_update_div").addClass("hidden");
+ $("#jira_server_delete_div").addClass("hidden");
+ $("#jira_project_renew_div").removeClass("hidden");
+ } else { // 상세보기, 처음화면
$("#jira_server_details_popup_div").removeClass("hidden");
$("#jira_server_update_div").addClass("hidden");
$("#jira_server_delete_div").addClass("hidden");
-
+ $("#jira_project_renew_div").addClass("hidden");
if (selectId == undefined) {
$(".body-middle").hide();
} else {
@@ -636,3 +663,22 @@
}
});
}
+
+// 갱신 버튼 (예상: all, project, issueType, issuePriority, issueResolution, issueStatus 등..)
+function jira_renew(renewJiraType, serverId) { // 서버 c_id
+ if (serverId == undefined) { serverId = "서버 아이디 정보 없음"; }
+ if (renewJiraType === undefined) { renewJiraType = "갱신할 지라 타입 없음"; }
+ console.log("갱신버튼을 눌렀습니다. 갱신할 종류(서버아이디) : " + renewJiraType+"("+serverId+")");
+}
+
+function projectDataTable(data) {
+ $("#jira_project_tabble").DataTable({
+ data: data,
+ columns: [
+ { data: "c_jira_name", title:"프로젝트 이름"},
+ { data: "c_jira_key", title:"프로젝트 키"},
+ { data: "c_desc", title:"프로젝트 아이디"}
+ ],
+ destroy: true, // 다시 불러올때 초기화
+ });
+}
\ No newline at end of file
Index: reference/jquery-plugins/select2-4.0.2/dist/css/jira_server_connection.css
===================================================================
diff -u -r81ae24a4b1343f9093d65e53de9e8dd919e2c689 -r90586071569a527fae484e7bd7ebe1b5645cddd0
--- reference/jquery-plugins/select2-4.0.2/dist/css/jira_server_connection.css (.../jira_server_connection.css) (revision 81ae24a4b1343f9093d65e53de9e8dd919e2c689)
+++ reference/jquery-plugins/select2-4.0.2/dist/css/jira_server_connection.css (.../jira_server_connection.css) (revision 90586071569a527fae484e7bd7ebe1b5645cddd0)
@@ -169,6 +169,11 @@
.mb-3 { margin-bottom: 0.75rem !important;}
.mb-4 { margin-bottom: 1rem !important;}
+.btn-disabled {
+ pointer-events: none;
+ cursor: default;
+}
+
/* text */
.text-muted {
color: #878a99 !important;;
@@ -264,7 +269,11 @@
color: #0AB39C;
border-radius: 1rem;
background-color: rgba(10, 179, 156, 0.15);
+ cursor: pointer;
}
+.card-body .text-success:hover {
+ background-color: rgba(10, 179, 156, 0.5);
+}
.d-flex-sb-11 {
display: flex;
justify-content: space-between;