| Interface | Description |
|---|---|
| AssignedField | |
| Comment |
A comment created on a YouTrack
Issue. |
| Comments | |
| Field |
A property of
issues. |
| Fields | |
| FieldValue |
A value for some
Field. |
| Issue |
A
YouTrack issue. |
| Issues |
Issues API.
|
| IssueTimeTracking |
API for
Issue timetracking. |
| Project |
A YouTrack project.
|
| ProjectField | |
| Projects |
Fetches
projects from the YouTrack server. |
| ProjectTimeTracking |
Access to a
project's timetracking settings. |
| TimeTrackEntry |
An entry in an
issue's timetracking. |
| TimeTrackEntryType |
The
TimeTrackEntry's type. |
| UpdateIssue |
API to update an
Issue. |
| User |
A registered user in YouTrack.
|
| UsersOfIssue | |
| UsersOfProject | |
| YouTrack |
Entry point for the YouTrack API.
|
| Class | Description |
|---|---|
| DefaultYouTrack |
Default implementation of
YouTrack. |
youtrack-api implements:
Example:
final Session session = new PermanentToken(youtrackUrl, myToken).login();
See the org.llorllale.youtrack.api.session package for more info.
YouTrack interface.
Obtain an instance of the default implementation like this:final YouTrack yt = new DefaultYouTrack(session);.
Projects interface is used to find
projects. final Optional<Project> project = new DefaultYoutrack(session)
.projects() //returns the Projects interface
.get("projectId"); //returns an Optional<Project>
See interfaces Projects and
Project.
issue like this: final Optional<Issue> issue = project.issues().get("issueId");
To create an issue, use
Issues.create(String, String):
final Issue is = project.issues().create("summary", "description");
See Issues for more info.
creationDate,
summary, and description (although optional). Behind the scenes, YouTrack
supports fields like State and Priority through the use of
custom fields that are configured (sometimes preconfigured) through a project's
settings.fields:
final Stream<ProjectField> fields = project.fields().stream();
To access all possible values for a field:
final Stream<FieldValue> values = projectField.values();
Updating an issue's fields can be done via Issue.update().
Example:
final ProjectField state = project.fields().stream()
.filter(f -> "State".equals(f.name()))
.findAny().get();
final FieldValue done = state.values()
.filter(v -> "Done".equals(v.asString())
.findAny().get();
final Issue issueUpdated = issue.update().field(state, done);Copyright © 2017–2018 George Aristy. All rights reserved.