YouTrack Standalone 7.0 Help

Import a Single Issue from Another YouTrack

By default, importing from other issue trackers to YouTrack is a per-project process, that is: You transfer all issues from a project to YouTrack at once. However, in some situations it can be useful to import a single issue, for example, from an internal YouTrack instance to a publicly available main tracker. We now provide you with a script allowing import issues from one YouTrack instance to another on per-issue basis.

Notes about permissions, imported user accounts and custom fields

  • A user account you use to log in to the source YouTrack server should have enough permissions to read issues and all their attributes including custom fields for the project to be imported. The user account you use to log into the target YouTrack server should have enough permissions to create new user accounts, and new issues in the specified target project. We recommend to use an account with the System Admin role for both source and target servers.
  • When a user account is imported, it will be created with the new randomly generated password. That is, when a user logs into the target YouTrack server with his username from the source server, on the Login page he should type his username and then use the Send password restore E-mail link to restore the password.
  • Only those custom fields that are used in the target project will be imported from the source YouTrack server.

To import a single issue from one YouTrack instance to another:

  1. Download the latest version of YouTrack's Python Client Library and unzip it.
  2. Ensure that either Python or JPython is installed in your system.
  3. Execute the following command:
    python moveIssue.py src_url src_login src_password trg_url trg_login trg_password src_issueId trg_projectId
    Specify the following parameters in the command:
    ParameterDescription
    src_urlAn URL to the source YouTrack server you want to import issues from.
    src_loginUsername to log in to the source YouTrack server.
    src_passwordPassword to log in to the source YouTrack server.
    trg_urlAn URL to a target YouTrack server you want to import issues to.
    trg_loginUsername to log into the target YouTrack server.
    trg_passwordPassword to log in to the source YouTrack server.
    src_issueIdAn issueID for the issue you want to import to the target YouTrack instance.
    trg_projectIdThe projectID of a project in a target YouTrack instance, you want to import the source issue to.
Last modified: 29 September 2016