YouTrack SDK
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file youtrack_sdk-1.0.202401030627.tar.gz
.
File metadata
- Download URL: youtrack_sdk-1.0.202401030627.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af2a184fd97f2935ca39b12b3a58c6c14d3ef6c228584cb59f78e6c7ee9bf104 |
|
MD5 | 7c72581a3c620c496b8515a37e0d784c |
|
BLAKE2b-256 | 8dad249a33b6a09f8ba339b8005425d7afb9580fb325bd3b5c378399b6e44c86 |
File details
Details for the file youtrack_sdk-1.0.202401030627-py3-none-any.whl
.
File metadata
- Download URL: youtrack_sdk-1.0.202401030627-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7b60632329f80b1dfc1fd69477ed20c6ce6d19389b0eccd0707a2117d1fa7d8 |
|
MD5 | d3d2c943ab782efa84580fed8bf7a109 |
|
BLAKE2b-256 | 13c5d1079f6b590617b182922d952895ec290a866cf0988e7c836e29dece2e22 |