Mantis 简明教程

Mantis - Import Issues

用户可以使用 CSV 文件一次创建多个问题。CSV 文件是逗号分隔文件。

The user can create multiple issues at a time using CSV files. CSV files are comma separated file.

Rules for CSV File

在创建 CSV 文件时,必须考虑以下几点 −

While creating a CSV file, following points must be considered −

  1. CSV file should be separate for each project.

  2. CSV file should be saved as CSV (Comma Delimited).

  3. The user should switch to the project before starting the CSV import steps.

  4. All entries should be made in a Notebook application. Each entry should be separated by a comma “,”.

  5. Files should be saved as filename.csv and the file type as All files.

  6. Don’t map ID field with any field in CSV. The system will automatically generate an Issue ID.

  7. For multiple lines “\n” can be used.

  8. For timestamp fields such as issue submission and last update timestamps, it is recommended using ISO 8601. However, PHP accepts any method strtotime (). If an integer is provided as the value, then it will be treated as the number of seconds, since Unix Epoch (January 1 1970 00:00:00 GMT).

示例文件看起来像以下所示 −

Sample file will look like the following −

login

wires

General

login functionality should be available

Assigned to

administrator

1.0

error

wires

General

error message on wrong credential

new

1.0

on successful

wires

General

welcome page on successful login

Assigned to

administrator

1.0

Import CSV

要导入 CSV 文件,用户应当执行以下步骤 −

To import a CSV file, the user should perform the following steps −

Step 1 − 转至管理 → 管理插件。

Step 1 − Go to Manage → Manage Plug-in.

Step 2 − 检查 CSV 导入器插件是否已安装。

Step 2 − Check whether the CSV Importer plug-in is installed or not.

Step 3 − 如果未安装,请单击安装,如下面的屏幕截图所示。

Step 3 − If it is not installed, click Install as shown in the following screenshot.

not installed

Step 4 − 由于已安装插件中没有 CSV 导入器,转至可用插件部分,找到 CSV 导入器。单击安装,如下面的屏幕截图所示。

Step 4 − Since CSV Importer is not present in the Installed Plugins, go to Available Plugins section and find CSV Importer. Click Install as shown in the following screenshot.

csv importer

Step 5 − 安装后,用户可以在已安装插件部分看到 CSV 导入器。导入 CSV 文件部分也存在。单击导入 CSV 文件,如下面的屏幕截图所示。

Step 5 − After installation, the user can see CSV Importer in the Installed Plug-in section. The Import CSV File section is also present. Click Import CSV File as shown in the following screenshot.

import csv file

Step 6 − 单击导入 CSV 文件后,将打开从 CSV 文件导入问题。根据文件和要求选择各种选项,如下面的屏幕截图所示。之后,单击选择文件浏览文件,然后单击上传文件。

Step 6 − After clicking Import CSV file, import issues from the CSV file opens. Select various options based on the file and requirements as shown in the following screenshot. Later, click Choose File to browse the file and then click Upload file.

click upload file

Step 7 − 成功上传后,用户可以看到按列排列的数据。在其下方,用户需要将这些列映射到 Issue 表单的不同字段,如下图所示。

Step 7 − After successful upload, the user can see the data column wise. Below that, the user needs to map those columns with different fields of Issue form as shown in the following screenshot.

Step 8 − 映射后,单击“导入文件”按钮。

Step 8 − After mapping, click the Import File button.

import file button

在导入完成后,用户可以看到成功的和不成功的条目的数量。

After completion of import, the user can see counts of successful and unsuccessful entries.

completion of import

系统会自动将用户导航到“正在查看问题”部分的“查看问题”选项卡,如下图所示。

Automatically, the user navigates to View Issues tab at Viewing Issues section as shown in the following screenshot.

viewing issues section