fix: 缺陷平台api调用报错

This commit is contained in:
chenjianxing 2021-11-23 19:00:16 +08:00 committed by jianxing
parent fa95490cb2
commit 876dd41ebc
4 changed files with 6 additions and 3 deletions

View File

@ -37,9 +37,9 @@ public class JiraPlatform extends AbstractIssuePlatform {
public JiraPlatform(IssuesRequest issuesRequest) {
super(issuesRequest);
this.key = IssuesManagePlatform.Jira.name();
jiraClientV2 = new JiraClientV2();
setConfig();
this.key = IssuesManagePlatform.Jira.name();
}
@Override

View File

@ -38,9 +38,9 @@ public class TapdPlatform extends AbstractIssuePlatform {
public TapdPlatform(IssuesRequest issueRequest) {
super(issueRequest);
this.key = IssuesManagePlatform.Tapd.name();
tapdClient = new TapdClient();
setConfig();
this.key = IssuesManagePlatform.Tapd.name();
}
@Override

View File

@ -39,11 +39,11 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
public ZentaoPlatform(IssuesRequest issuesRequest) {
super(issuesRequest);
this.key = IssuesManagePlatform.Zentao.name();
ZentaoConfig zentaoConfig = getConfig();
this.workspaceId = issuesRequest.getWorkspaceId();
this.zentaoClient = ZentaoFactory.getInstance(zentaoConfig.getUrl(), zentaoConfig.getRequest());
this.zentaoClient.setConfig(zentaoConfig);
this.key = IssuesManagePlatform.Zentao.name();
}
@Override

View File

@ -119,3 +119,6 @@ CREATE TABLE IF NOT EXISTS `enterprise_test_report_send_record` (
CREATE INDEX issues_platform_id_IDX ON issues (platform_id);
ALTER TABLE issues MODIFY COLUMN title varchar(300);
ALTER TABLE issues MODIFY COLUMN description LONGTEXT;