Skip to end of metadata
Go to start of metadata
Before you begin:
If you try to re-import same project several times, then you must delete previously imported data before the next attempt.

Importing Issues from a CSV File

The Python Client Library supports importing issues to YouTrack from a CSV file. Virtually, this option enables you importing data from any other issue tracker, which supports export to a CSV file.

Version compatibility note

Current implementation of the Python Client Library and scripts is compatible with YouTrack 3.x and higher REST API and Python 2.7. If you use YouTrack 2.x, please refer to YouTrack Release Downloads Archive for the YouTrack 2.x compatible versions of the library and scripts.

To import issues from an existing CSV file:

  1. Download the latest version of YouTrack's Python Client Library and unzip it.
  2. Install Python.
  3. Create a mapping file to set the correspondence between source fields in a CSV file and YouTrack issue's attributes. This mapping file should be created in the <unzipped library directory>\python\csvClient directory. For more details about structure of the library, please to the Python Client Library
  4. When a mapping file is created, specify the mapping file in the csv2youtrack.py file:
  5. Import issues from a file to YouTrack running the following command:

    The following command line parameters should be provided:

    Parameter Description
    csv_file Path to the source CSV file.
    youtrack_url The URL of the target YouTrack server.
    youtrack_login YouTrack administrator user name.
    youtrack_password YouTrack administrator password to log in.

Importing Comments

The current format for importing comments is as follows:

That is, any string between commas (i.e. a column) that comes without a field name will be rendered as a comment.
If you want to use any other format, you should modify the script.

Samples

CSV File Sample

Mapping File Sample

Labels:
import import Delete
csv csv Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.