Import from Space
The new option to import data from JetBrains Space lets you migrate data from a Space organization, including projects, issues, comments, and users.
Essentially, an import configuration is a graphic UI representation of an import script. A setup wizard navigates you through the import configuration process. If your project has any custom settings, you can use an option to edit the client Space import script in YouTrack itself directly.
Prerequisites
Your network allows requests from YouTrack to Space.
TThe account you use to connect to Space has access to the Space project you want to import. This is the user account whose private access token is used for authentication.
Import Details
If the Space database contains references to entities that do not exist in YouTrack, 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.
Imported Entities
Here is the list of entities that are imported from Space and their mapping to YouTrack entities:
Entity in Space | Entity in YouTrack | Details |
---|---|---|
Projects | Projects | |
Issues | Issues | |
Issue custom fields and their values | Issue custom fields and their values | |
Values of issue-typed custom fields | Issue links | YouTrack imports linked issues with the |
Comments | Comments | |
Tags | Tags | YouTrack imports only those tags that the imported issues are tagged with. |
Attachments | Attachments | |
Users | Users | YouTrack imports only those user accounts that are set in any fields in the imported issues. |
Teams | User groups | YouTrack imports only those teams that are set as values in team-typed custom fields. |
Issue subscribers | Issue watchers |
Import Limitations
Here is the list of entities in Space that the default import script doesn't process:
Issue history
Documents
Boards
Blog posts
Checklists
To import these entities, customize the default import script.
Set up an Import from Space
Before you add a new import configuration, you need to create a personal access token that will grant access to the target project in Space. Then you can use the token for authorization when setting up the import in YouTrack.
Create a Personal Token in Space
To set up an import of items from Space, first, you need to create a personal token for your Space organization.
To create a personal token in Space, follow the instructions in the Space documentation.
If you're creating a personal token with limited access, enable those permissions that allow read access to the entities you need to import. The list of required permissions may vary depending on the Space setup and on the import script.
Here is the minimal list of permissions required for the import with default settings:
View issues
View member profiles
View languages
View participants in issue comment threads
View project details
View teams
Configure Import from Space in YouTrack
To configure import from Space:
From the Administration menu, select .
Click New import to open the setup dialog.
Select Space.
Configure the import settings:
Setting
Description
Space URL
The URL of your Space organization.
Token
The personal token you have generated in Space for the user account you use to access the target issues.
If required by your Space organization, enable the Use SSL key for client authentication option.
When done, click Next.
Review the settings that you have provided.
Select the target projects for the import. For details, see Project Mapping.
Optionally, enable the Continuous import. When enabled, YouTrack will periodically poll the Space project and import updates that were made since the last sync.
When done, click Start import.
YouTrack will create a project of the same name as the target project in Space, and import found issues, comments, 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.
If the Continuous import option is enabled, YouTrack will periodically check target Space projects for updated and new issues.
When you have set up an import, it is shown in the imports list. Select the import configuration from the list to view the configuration and import details.
In the details sidebar, YouTrack shows the import status and details on the imported data. Click the Resume button in the toolbar to explicitly start polling for changes and importing updates from the target Space project.
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 projects 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.
To configure project mapping:
Locate those Space projects that you want to import.
Use the filter bar on the right to filter projects by name.
Select the projects that you want to import. Check the box on the top of the list to import all available Space projects.
Select a target YouTrack project for each Space project.
When loading the list of Space projects for mapping, YouTrack checks for existing YouTrack projects with corresponding names. If it finds a YouTrack project with the same name as the Space 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.
If you want to change a target project, select another option from the corresponding dropdown on the list.
Click Next to start the import.
Import starts.
Edit Import Settings
To edit an existing import configuration:
From the Administration menu, select .
Select the one you need to edit from the list of configured imports.
In the right sidebar, click the Edit in the toolbar.
While in the edit mode, change the import settings, including the connection settings.
Click the customize the import script link at the bottom of the page to change the script. For details, refer to the Developer Portal.
When ready, click Resume import.
Your changes will be applied, and YouTrack will poll the target Space project for the updates.
Delete the Import Configuration
To delete an existing import configuration:
From the Administration menu, select .
Select the one you need to delete from the list of configured imports.
Click the trash icon in the main toolbar of the page or the Delete button in the details sidebar on the right.
In the shown dialog, confirm the operation by clicking Delete.
The current import settings are removed.
Projects, issues, and users that are already imported remain in YouTrack.