YouTrack Cloud 2023.3 Help

Import from Bugzilla

The import from Bugzilla lets you import projects, issues, issue history, comments, attachments, users, custom fields, tags, links, and work items from a Bugzilla service to YouTrack.

A setup wizard navigates you through the import configuration process. It prompts you to enter the connection settings and lets you map projects in YouTrack to projects in Bugzilla. If your Bugzilla project has a custom set of fields for issues, you can edit the import script in YouTrack directly.

Prerequisites

Before you import projects from Bugzilla to YouTrack, check the following requirements:

  • Your Bugzilla version is 5.0.4 or later.

  • Your YouTrack and Bugzilla installations are accessible to inbound connections. Specifically, you need to make sure that your network doesn't block connections between your Bugzilla installation and YouTrack.

  • Make sure that your Bugzilla installation has JSON Perl module (JSON:RPC and JSON:XS packages) installed. Otherwise, the import will fail.

  • Your user account in Bugzilla has administrative permissions.

  • You have direct access to log in to the source application using a password or token.

    YouTrack's import engine doesn't support authentication through external authentication modules.

Import Details

If the Bugzilla database contains references to entities that do not exist in YouTrack yet, they are created. The YouTrack user account you use to run the import should have permissions to create all imported entities. We recommend using an account with a System Admin role or the Low-level Admin Write permission to run the import.

Here is the list of entities that are imported from Bugzilla and their mapping to YouTrack entities:

Entity in Bugzilla

Entity in YouTrack

Product

Project

Bugs

Issues

Bug history

Issue history

Bug dependencies

Issue links of the Depend type

Custom fields

Custom fields

Comments

Comments

Attachments

Attachments

Work hours

Work items

Users

Users

User groups

User groups

Set up an Import from Bugzilla

Before you add a new import configuration, you need to create a personal API Key that will grant access to the target project in Bugzilla. Then you can use it as the token for authorization when setting up the import in YouTrack.

Create an API Key in Bugzilla

To set up an import, first, you need to create a personal API key in Bugzilla.

To create an API key in Bugzilla:

  1. Log in to Bugzilla with an account that is granted administrative permissions.

  2. Navigate to the Preferences > API Keys page.

  3. In the New API Key section, enable the Generate a new API key with optional description option, and provide a description for the key.

  4. Click Submit changes.

    • The new API Key is added to the list.

    The list of API Keys.

Configure an Import from Bugzilla

The setup wizard guides you through the setup process.

To configure an import from Bugzilla:

  1. From the Administration menu, select Integrations > Imports.

  2. Click New import to open the setup dialog.

    New import dialog
  3. Select Bugzilla.

    • Settings for a New Import from Bugzilla are displayed.

    Bugzilla import: connection settings
  4. Enter values for the following settings:

    Setting

    Description

    URL

    The URL of the target Bugzilla service.

    Token

    The API Key that you have generated in Bugzilla for the user account that you use to access the target issues.

    If required by your Bugzilla installation, enable the Use SSL key for client authentication option.

  5. Click the Next button.

    • The second set of import settings is displayed.

    Select projects to import
  6. Expand the Manage import for optional datasets section. Here you can configure the import engine to ignore certain parts of the source database during import.

    Setting

    Description

    Issue history

    Disable this toggle to ignore historical changes of issues during import.

    Issue links

    Disable this toggle to ignore links between issues during import.

    By default, these toggles are enabled. This means that YouTrack will pull historical changes and issue links from the import source if the import script supports it.

  7. Select the source and target projects for the import. For more details about project mapping configuration, see Project Mapping.

  8. Click the Start import button.

    • YouTrack will create a project of the same name as the target project in Bugzilla and import found issues, articles, and users.

    • If you have configured a project mapping, YouTrack will create new projects and import data to the existing ones according to the mapping.

When you have set up an import, it appears in the Imports list. To view configuration and import details, select the import configuration from the list.

Import results

In the details sidebar, YouTrack shows import status and details on the data that was imported.

Click the Resume button in the toolbar to explicitly start polling for changes and importing updates from the target Bugzilla projects.

You can also download the import log file to study and investigate when needed.

Project Mapping

On the final step of the import setup, you can select those Bugzilla projects that you want to import to YouTrack. You can also choose whether to create a new project for the import or import data into an existing project in YouTrack.

Project Mapping

To configure project mapping:

  1. Locate those Bugzilla projects that you want to import.

    Use the filter bar on the right to filter projects by name.

  2. Select the projects that you want to import. Select the option at the top of the list to import all available Bugzilla projects.

  3. Select a target YouTrack project for each Bugzilla project.

    • When loading the list of Bugzilla projects for mapping, YouTrack checks for existing YouTrack projects with corresponding names. If it finds a YouTrack project with the same name as the Bugzilla one, YouTrack suggests it as the target project.

    • If there is no existing YouTrack project with the corresponding name, YouTrack suggests creating a new one.

  4. If you want to change a target project, select another option from the corresponding dropdown on the list.

  5. Click Start import to finalize import setup and start the import.

    • Import starts.

Import Options

After the initial import, the following controls are available in the sidebar:

Import Options

Control

Description

Resume

Immediately imports any changes made in the selected Bugzilla projects after the previous import.

Edit

Opens the integration settings page in edit mode. Use this option to connect to a different Bugzilla service, update the API key, or update project mapping.

Delete

Deletes the current import settings. Projects, issues, comments, users, and groups that were imported from the connected Bugzilla service are not affected. If you delete the import settings and connect to the same Bugzilla service, the issues are re-imported into existing projects with new issue IDs.

Last modified: 29 February 2024