YouTrack Standalone 7.0 Help

Python Client Library

This document describes Python library that wraps YouTrack REST API.

Compatibility

Current implementation of the Python Client Library and scripts is compatible with YouTrack 3.x and higher REST API and Python 2.6.
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.

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: 2 February 2017