aYouTrack is a library for YouTrack REST API written in Python 3.6 with asyncio and aiohttp. It helps to integrate YouTrack with your product.
- Import YouTrack
from youtrack import YouTrackAPI
- Create yt instance
yt = YouTrackAPI(url=YT_SITE_URL, login=YT_LOGIN, password=YT_PASSWORD)
- Create issue and get new issue id or issue link or issue object
issue = await yt.create_issue(project='MyProject', summary='My Issue', output='issue')
- Update issue
await issue.update(summary="My Issue 2", description='Added description')
- Delete issue
await issue.delete()
- Get another issue by id
another_issue = await yt.get_issue('YT-123')
- Execute issue commands (for example set custom field)
value = 'some value'
await another_issue.execute(f'field {value}')
- Token authorization
- Set default project
- Project related methods
- User related methods