Class YouTrackClient
- java.lang.Object
-
- net.florianschoppmann.issuetracking.youtrack.YouTrackClient
-
public final class YouTrackClient extends Object
-
-
Constructor Summary
Constructors Constructor Description YouTrackClient(javax.ws.rs.client.Client jaxrsClient, URI baseUri, String accessToken)
-
Method Summary
-
-
-
Method Detail
-
importIssues
public ImportReport importIssues(Issues issues, String projectAbbrev, boolean dryRun)
-
importLinks
public ImportReport importLinks(List links, boolean dryRun)
-
importAttachment
public ImportReport importAttachment(Attachments.Attachment attachment, String projectAbbrev, Path basePath, boolean dryRun)
Imports the given attachment.- Parameters:
attachment
- the attachmentprojectAbbrev
- abbreviation of projectbasePath
- Base path thatAttachments.Attachment.path
will be resolved against, if it is a relative path. This parameter has no effect if that function returns an absolute path.- Returns:
- the import report
-
getIssues
public List<Issue> getIssues(String projectAbbrev, StringNode fields)
-
getIssue
public Issue getIssue(String issueKey, StringNode fields)
-
updateIssue
public Issue updateIssue(String issueKey, Issue issue, StringNode fields)
-
getIssueComments
public List<IssueComment> getIssueComments(String issueKey, StringNode fields)
-
updateIssueComment
public IssueComment updateIssueComment(String issueKey, String commentId, IssueComment issueComment, StringNode fields)
-
getProjects
public List<Project> getProjects(StringNode fields)
-
getMe
public User getMe(StringNode fields)
-
getUsers
public List<User> getUsers(StringNode fields)
-
getUserGroups
public List<UserGroup> getUserGroups(StringNode fields)
-
getAllAvailableTags
public SortedMap<String,IssueTag> getAllAvailableTags()
Returns a map from tag name toIssueTag
that contains all tags that are not other users' personal tags.
-
-