- 하위이슈 직접 생성 시 프로젝트 변경 못하도록 수정
- 연관이슈 직접 생성 시 프로젝트 변경 할 경우 이슈타입도 변경 되도록 수정
| | |
| | | $scope.vm.projectName = $rootScope.workProject.name; |
| | | $scope.vm.form.projects = []; |
| | | $scope.vm.form.projects.push($rootScope.workProject); |
| | | } else { |
| | | $scope.vm.projectName = parameter.project.name; |
| | | $scope.vm.form.projects.push(parameter.project); |
| | | } |
| | | // 현재 이슈타입 유형 설정 |
| | | var id = $rootScope.getCurrentIssueTypeId(); |
| | |
| | | } else { |
| | | $scope.vm.form.issueTypeId = parameter.issueTypeId.toString(); |
| | | } |
| | | // 이슈유형, 프로젝트 set 한 후에 사용자정의필드 set |
| | | $scope.fn.getIssueTypeCustomFields(); |
| | | $log.debug("promises 결과 ", results); |
| | | }); |
| | | } |
| | |
| | | getChildSectorListCallBack : getChildSectorListCallBack, |
| | | getRegionListCallBack : getRegionListCallBack, |
| | | getStatusListCallBack : getStatusListCallBack, |
| | | getIssueTypeOfProject : getIssueTypeOfProject |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | } else { |
| | | // 이슈 유형에 연결된 사용자 정의 필드 가져오기 |
| | | $scope.fn.getIssueTypeCustomFields(); |
| | | // 선택한 프로젝트에 속해있는 이슈유형만 보여주기 |
| | | $scope.fn.getIssueTypeOfProject(); |
| | | } |
| | | } |
| | | }); |
| | |
| | | return deferred.promise; |
| | | } |
| | | |
| | | // 선택한 프로젝트에 속해있는 이슈유형만 보여주기 |
| | | function getIssueTypeOfProject() { |
| | | var deferred = $q.defer(); |
| | | |
| | | IssueType.find($resourceProvider.getContent({projectId : $scope.vm.form.projects[0].id}, |
| | | $resourceProvider.getPageContent(0, 1000))).then(function (result) { |
| | | |
| | | if (result.data.message.status === "success") { |
| | | $scope.vm.issueTypes = result.data.data; |
| | | } |
| | | else { |
| | | SweetAlert.swal($filter("translate")("issue.failedToIssueTypeListLookup"), result.data.message.message, "error"); // 이슈 타입 목록 조회 실패 |
| | | } |
| | | |
| | | deferred.resolve(result.data.data); |
| | | }); |
| | | |
| | | return deferred.promise; |
| | | } |
| | | |
| | | // 우선순위 목록 |
| | | function getPriorities() { |
| | | var deferred = $q.defer(); |
| | |
| | | $scope.vm.projectName = $rootScope.workProject.name; |
| | | $scope.vm.form.projects = []; |
| | | $scope.vm.form.projects.push($rootScope.workProject); |
| | | } else { |
| | | $scope.vm.projectName = parameter.project.name; |
| | | $scope.vm.form.projects.push(parameter.project); |
| | | } |
| | | // 현재 이슈타입 유형 설정 |
| | | var id = $rootScope.getCurrentIssueTypeId(); |
| | |
| | | } else { |
| | | $scope.vm.form.issueTypeId = parameter.issueTypeId.toString(); |
| | | } |
| | | // 프로젝트의 이슈유형 set |
| | | $scope.fn.getIssueTypeOfProject(); |
| | | // 이슈유형, 프로젝트 set 한 후에 사용자정의필드 set |
| | | $scope.fn.getIssueTypeCustomFields(); |
| | | $log.debug("promises 결과 ", results); |
| | | }); |
| | | } |
| | |
| | | case "ISSUE_TITLE" : // 이슈 제목 |
| | | $scope.vm.tableConfigs.push($tableProvider.config() |
| | | .setHName("issue.issueTitle") |
| | | .setDName("issueTitle") |
| | | .setDName("title") |
| | | .setDType("renderer") |
| | | .setHWidth("bold " + issueTableConfig.width) |
| | | .setDAlign("text-center") |
| | |
| | | $scope.vm.tableConfigs.push($tableProvider.config() |
| | | .setHName(customField.name) |
| | | .setDType("renderer") |
| | | .setDName("useValue" + [count]) /* todo 체크*/ |
| | | .setDName("useValue" + count.toString()) /* todo 체크*/ |
| | | .setHWidth("bold " + issueTableConfig.width) |
| | | .setDAlign("text-center") |
| | | .setColumnHint(customField) |
| | |
| | | }); |
| | | } |
| | | |
| | | function addRelationIssueForm(id, issueTypeId) { |
| | | function addRelationIssueForm(id, project, issueTypeId) { |
| | | $uibModal.open({ |
| | | templateUrl : 'views/issue/issueAddRelation.html', |
| | | size : "lg", |
| | |
| | | parameter : function () { |
| | | return { |
| | | id : id, |
| | | project : project, |
| | | issueTypeId : issueTypeId |
| | | }; |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | function addDownIssueForm(id, issueTypeId) { |
| | | function addDownIssueForm(id, project, issueTypeId) { |
| | | $uibModal.open({ |
| | | templateUrl : 'views/issue/issueAddDown.html', |
| | | size : "lg", |
| | |
| | | parameter : function () { |
| | | return { |
| | | id : id, |
| | | project : project, |
| | | issueTypeId : issueTypeId |
| | | }; |
| | | } |
| | |
| | | <div class="form-group mb10"> |
| | | <label class="issue-label"> <span translate="common.project">프로젝트</span> <code |
| | | class="highlighter-rouge">*</code></label> |
| | | <js-autocomplete-single data-input-name="project" |
| | | <!--<js-autocomplete-single data-input-name="project" |
| | | selected-model="vm.form.projects" |
| | | search="vm.projectName" |
| | | source="fn.getProjectList(vm.projectName, vm.form.projects, vm.autoCompletePage.project.page, fn.getProjectListCallBack)" |
| | |
| | | total-page="vm.autoCompletePage.project.totalPage" |
| | | translation-texts="{ empty : 'common.emptyProject' }" |
| | | extra-settings="{ displayProp : 'name' , idProp : 'id', imageable : false, imagePathProp : '', |
| | | type : '', maxlength : 200, autoResize : false, stopRemoveBodyEvent : true }"></js-autocomplete-single> |
| | | type : '', maxlength : 200, autoResize : false, stopRemoveBodyEvent : true }" |
| | | > |
| | | </js-autocomplete-single>--> |
| | | <select id="issueAddDownForm6" |
| | | name="issueType" |
| | | class="form-control input-sm issue-select-label" |
| | | ng-model="vm.projectName" |
| | | required |
| | | disabled> |
| | | <option>{{vm.projectName}}</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | class="highlighter-rouge">*</code></label> |
| | | <js-autocomplete-single data-input-name="project" |
| | | selected-model="vm.form.projects" |
| | | ng-model="vm.form.projects" |
| | | ng-change="fn.getIssueTypeOfProject()" |
| | | search="vm.projectName" |
| | | source="fn.getProjectList(vm.projectName, vm.form.projects, vm.autoCompletePage.project.page, fn.getProjectListCallBack)" |
| | | page="vm.autoCompletePage.project.page" |
| | |
| | | ng-click="fn.addRelationIssue()" |
| | | translate="issue.addRelationIssue">연관 이슈 추가</button> |
| | | <button type="button" class="btn btn-sm btn-primary btn-roundRel offset-1" |
| | | ng-click="fn.addRelationIssueForm(vm.viewer.id, vm.viewer.issueTypeVo.id)"> |
| | | ng-click="fn.addRelationIssueForm(vm.viewer.id, vm.viewer.projectVo, vm.viewer.issueTypeVo.id)"> |
| | | <i class="os-icon os-icon-plus"><span></span></i> |
| | | </button> |
| | | </div> |
| | |
| | | ng-click="fn.addDownIssue()" |
| | | translate="issue.addDownIssue">추가</button> |
| | | <button type="button" class="btn btn-sm btn-primary btn-roundRel offset-1" |
| | | ng-click="fn.addDownIssueForm(vm.viewer.id, vm.viewer.issueTypeVo.id)"> |
| | | ng-click="fn.addDownIssueForm(vm.viewer.id, vm.viewer.projectVo, vm.viewer.issueTypeVo.id)"> |
| | | <i class="os-icon os-icon-plus"><span></span></i> |
| | | </button> |
| | | </div> |