| | |
| | | }).then(function (result) { |
| | | |
| | | if (result.data.message.status === "success") { |
| | | $scope.fn.addRelationIssue(); |
| | | $scope.fn.addRelationIssue(result.data.data); |
| | | |
| | | $scope.fn.cancel(); |
| | | |
| | |
| | | } |
| | | |
| | | // 연관 이슈 추가 |
| | | function addRelationIssue() { |
| | | function addRelationIssue(relId) { |
| | | /*if ($scope.vm.issueName.length == 0 || $scope.vm.form.issues.length == 0 |
| | | || $scope.vm.issueName != $scope.vm.form.issues[0].title) { |
| | | SweetAlert.error($filter("translate")("issue.errorSelectRelationIssue"), ""); |
| | |
| | | relationIssueType : $scope.vm.form.issueTypeId, |
| | | // issueId : $rootScope.currentDetailIssueId, |
| | | issueId : parameter.id, |
| | | relationIssueId : $scope.vm.form.issues[0].id, |
| | | relationIssueId : relId, |
| | | priorityName : $scope.vm.priorityName |
| | | }; |
| | | |