* Add merge jira.

This commit is contained in:
孙广明
2022-02-09 13:23:28 +08:00
parent 2a902a886c
commit 94ccf64354
11 changed files with 281 additions and 7 deletions
+56
View File
@@ -247,4 +247,60 @@ class convert extends control
$this->view->info = redmineConvertModel::$info;
$this->display();
}
public function jira()
{
$this->view->title = $this->lang->convert->jira->method;
$this->display();
}
public function importNotice($type = 'db')
{
if($_POST)
{
$dbName = $this->post->dbName;
if(!$dbName)
{
$response['result'] = 'fail';
$response['message'] = $this->lang->convert->jira->dbNameEmpty;
return print($this->send($response));
}
if(!$this->convert->dbExists($dbName))
{
$response['result'] = 'fail';
$response['message'] = $this->lang->convert->jira->invalidDB;
return print($this->send($response));
}
$response['result'] = 'success';
$response['message'] = $this->lang->saveSuccess;
$response['locate'] = $this->createLink('convert', 'mapJira2Zentao', "type=db&dbName={$this->post->dbName}");
return print($this->send($response));
}
$this->view->title = $this->lang->convert->jira->method;
$this->view->type = $type;
$this->display();
}
public function mapJira2Zentao($type = 'db', $dbName = '')
{
if($_POST)
{
a($_POST);die;
}
if($type == 'db')
{
$this->convert->connectDB($dbName);
$issueTypePairs = $this->convert->getIssueTypePairs();
$linkTypePairs = $this->convert->getLinkTypePairs();
}
$this->view->title = $this->lang->convert->jira->mapJira2Zentao;
$this->view->issueTypePairs = $issueTypePairs;
$this->view->linkTypePairs = $linkTypePairs;
$this->display();
}
}