YouTrack Интеграция
Литература¶
Примеры запросов¶
curl --request GET \
--url 'https://youtrack.test.com/api/issues/ISSUEID-123?fields=id,summary,project(id,name),parent(issues(id,summary,project(name),customFields(name,value(name,minutes,presentation)))),customFields(name,value(name,minutes,presentation))' \
--header 'Authorization: Bearer perm:**********' \
--header 'Cache-Control: no-cache' \
--header 'Content-Type: application/json'
Возвращает информацию по таске и родительским задачам. Объекты которые использовалось - Основная сущность Issue - Доп сущность Project - Доп сущность Parent IssueLink - Доп сущность customFields IssueCustomField - Доп сущность PeriodValue - Доп сущность project Project - Доступные fields Issue
curl --request GET \
--url 'https://youtrack.test.com/api/issues/ISSUEID-123/activities?categories=CustomFieldCategory&fields=id,category,author(login),field(name,presentation),timestamp,added' \
--header 'Authorization: Bearer perm:**********' \
--header 'Cache-Control: no-cache' \
--header 'Content-Type: application/json'
curl --request GET \
--url 'https://youtrack.test.com/api/issues/ISSUEID-123/timeTracking/workItems?fields=id,author(login),type(name),created,date,duration(presentation,minutes),text,attributes(name,value(name,description)),issue(id,summary,project(id,name),parent(issues(id,summary,project(name),customFields(name,value(name,minutes,presentation)))),customFields(name,value(name,minutes,presentation)))' \
--header 'Authorization: Bearer perm:**********' \
--header 'Cache-Control: no-cache' \
--header 'Content-Type: application/json'
- workItems
- Type WorkItemType
- Author User
- Duration DurationValue
- Attributes Array of WorkItemAttributes
- Value WorkItemAttributeValue
- Issue Issue
- Project Project
- Parent IssueLink
- CustomFields IssueCustomField