YouTrack Standalone 2017.2 Help

Python Client Library

This document describes Python library that wraps YouTrack REST API.

Compatibility

The current implementation of the Python Client Library and import scripts is compatible with Python 2.7+. Python 3.0 is not supported.

Installation

  1. Download the latest version of YouTrack Python Client library and unzip it.
  2. Install Python

Authenticating

from youtrack.connection import Connection connection = Connection('http://teamsys.intellij.net', 'xxx', 'xxx')

Get Issues

# get one issue connection.getIssue('SB-1') # get first 10 issues in project JT for query 'for: me #unresolved' connection.getIssues('JT', 'for: me #unresolved', 0, 10)

Create Issue

connection.createIssue('SB', 'resttest', 'Test issue', 'Test description', '2', 'Bug', 'First', 'Open', '', '', '')

Other Methods

See method of class Connection in youtrack/connection.py

Last modified: 22 May 2017