YouTrack REST API Client
A client library for accessing YouTrack REST API.
Usage
from datetime import date
from youtrack_sdk import Client
from youtrack_sdk.entities import (
DateIssueCustomField,
EnumBundleElement,
Issue,
Tag,
Project,
SingleEnumIssueCustomField,
SingleUserIssueCustomField,
StateBundleElement,
StateIssueCustomField,
User,
)
client = Client(base_url="https://dummy.myjetbrains.com/youtrack", token="dummy")
result = client.create_issue(
issue=Issue(
project=Project(id="0-0"),
summary="Created from YouTrack SDK",
description="Description **text**.",
tags=[
Tag(id="6-0"),
],
custom_fields=[
StateIssueCustomField(
name="State",
value=StateBundleElement(
name="In Progress",
),
),
SingleUserIssueCustomField(
name="Assignee",
value=User(
ring_id="00000000-a31c-4174-bb27-abd3387df67a",
),
),
SingleEnumIssueCustomField(
name="Type",
value=EnumBundleElement(
name="Bug",
),
),
DateIssueCustomField(
name="Due Date",
value=date(2005, 12, 31),
),
],
),
)
Note
- You should prefer to use internal entity IDs everywhere. Some methods accept readable issue IDs (e.g. HD-99) but it's not supported everywhere.
Metadata
Release files for youtrack-sdk 1.0.202402091306
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| youtrack_sdk-1.0.202402091306.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| youtrack_sdk-1.0.202402091306-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.2 kB
Release files / youtrack_sdk-1.0.202402091306.tar.gz
| Download URL | youtrack_sdk-1.0.202402091306.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50c8a98405470149b56cd337050abe09f53591c8a136d578693096237cfefaef
|
|
BLAKE2b-256 checksum How to use checksums |
aaef138497282f2d7a90a2e915b6b11951aad8409e653e9e7896e8ca27851e1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1019-azure
|
Release files / youtrack_sdk-1.0.202402091306-py3-none-any.whl
| Download URL | youtrack_sdk-1.0.202402091306-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95fd7997384fc28ae627e00c251ff8b948b7956dcdbbc2c9f021afe669b19425
|
|
BLAKE2b-256 checksum How to use checksums |
19732864b1237cf0cb2f88b0e774ba724882b29005aca1e83d09866ad365859a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1019-azure
|