Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

youtrack_sdk-1.0.202403131016.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

youtrack_sdk-1.0.202403131016-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file youtrack_sdk-1.0.202403131016.tar.gz.

File metadata

  • Download URL: youtrack_sdk-1.0.202403131016.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.5.0-1016-azure

File hashes

Hashes for youtrack_sdk-1.0.202403131016.tar.gz
Algorithm Hash digest
SHA256 2e9816eba15ca7e5d62ffa46a666ce2ab1a375f345a1f590c7cfbe9e46265eac
MD5 d70564628e71462590de36ff5d5827cb
BLAKE2b-256 b1fb13c2801e341f7f95d7b5fc182ac03302c6cad126cca490d6aa3af27d70a3

See more details on using hashes here.

File details

Details for the file youtrack_sdk-1.0.202403131016-py3-none-any.whl.

File metadata

File hashes

Hashes for youtrack_sdk-1.0.202403131016-py3-none-any.whl
Algorithm Hash digest
SHA256 3cb992872f5fc784169ceba030bb244d9ab3da325d6f3bceddbe395376ebe49a
MD5 51236e73ff4afd53c9331263c71f405a
BLAKE2b-256 e786f36df8605697978155f00abcf77122d80bc63adcb3a5dae7bf53367f1bd7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page