YouTrack Standalone 2021.3 Help

Import from Bugzilla

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

In essence, an import configuration is a graphic UI representation of an import script. A setup wizard navigates you through the import configuration process, which covers standard issue settings in Bugzilla. If your project has a custom set of fields for issues, you can use an option to directly edit a client import script in YouTrack itself.

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.

Import Details

If the Bugzilla database contains references to entities that do not already exist in YouTrack, they are created. The YouTrack user account that you use to run the import should have permissions to create all imported entities. We recommend that you use 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 BugzillaEntity in YouTrack
ProductProject
BugsIssues
Bug historyIssue history
Bug dependenciesIssue links of the Depend type
Custom fieldsCustom fields
CommentsComments
AttachmentsAttachments
Work hoursWork items
UsersUsers
User groupsUser 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 create a 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 will be added to the list:

The list of API Keys.

Configure Import from Bugzilla

The setup wizard guides you through the setup process.

To connect to a Bugzilla instance:

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

  2. Click New import to open the setup dialog.

    New import dialog
  3. Select Bugzilla.

  4. Configure the import settings:

    Bugzilla import: connection settings
    SettingDescription
    URLThe URL of the target Bugzilla service.
    TokenThe 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.

    When done, click Next.

  5. Select source and target projects for import. For details, see Project Mapping.

    Select projects to import
  6. When done, click Start import.

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

When you have set up an import project, it is shown in the imports list. To view configuration and import details, select an import configuration in the list.

Import configuration in the list and with open Details sidebar

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 have an option to 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. Check the box on 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.

Delete the Import Configuration

To delete an existing import configuration:

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

  2. In the list of configured imports, select the one you need to delete.

  3. Click the trash icon in the main toolbar of the page, or the Delete button in the right details sidebar.

    Click the delete button.
  4. In the shown dialog, confirm the operation by clicking Delete.

    Confirm the delete operation.
    • The current import settings are removed.

    • Projects, issues, users, and groups that are already imported remain in YouTrack.

Last modified: 20 July 2021