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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Error
addTag(Search tag)
SortedMap<String,IssueTag>
getAllAvailableTags()
Returns a map from tag name toIssueTag
that contains all tags that are not other users' personal tags.Issue
getIssue(String issueKey, net.florianschoppmann.issuetracking.util.StringNode fields)
List<IssueComment>
getIssueComments(String issueKey, net.florianschoppmann.issuetracking.util.StringNode fields)
List<Issue>
getIssues(String projectAbbrev, net.florianschoppmann.issuetracking.util.StringNode fields)
User
getMe(net.florianschoppmann.issuetracking.util.StringNode fields)
List<Project>
getProjects(net.florianschoppmann.issuetracking.util.StringNode fields)
List<UserGroup>
getUserGroups(net.florianschoppmann.issuetracking.util.StringNode fields)
List<User>
getUsers(net.florianschoppmann.issuetracking.util.StringNode fields)
ImportReport
importAttachment(Attachments.Attachment attachment, String projectAbbrev, Path basePath, boolean dryRun)
Imports the given attachment.ImportReport
importIssues(Issues issues, String projectAbbrev, boolean dryRun)
ImportReport
importLinks(List links, boolean dryRun)
Issue
updateIssue(String issueKey, Issue issue, net.florianschoppmann.issuetracking.util.StringNode fields)
IssueComment
updateIssueComment(String issueKey, String commentId, IssueComment issueComment, net.florianschoppmann.issuetracking.util.StringNode fields)
-
-
-
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, net.florianschoppmann.issuetracking.util.StringNode fields)
-
getIssue
public Issue getIssue(String issueKey, net.florianschoppmann.issuetracking.util.StringNode fields)
-
updateIssue
public Issue updateIssue(String issueKey, Issue issue, net.florianschoppmann.issuetracking.util.StringNode fields)
-
getIssueComments
public List<IssueComment> getIssueComments(String issueKey, net.florianschoppmann.issuetracking.util.StringNode fields)
-
updateIssueComment
public IssueComment updateIssueComment(String issueKey, String commentId, IssueComment issueComment, net.florianschoppmann.issuetracking.util.StringNode fields)
-
getProjects
public List<Project> getProjects(net.florianschoppmann.issuetracking.util.StringNode fields)
-
getMe
public User getMe(net.florianschoppmann.issuetracking.util.StringNode fields)
-
getUserGroups
public List<UserGroup> getUserGroups(net.florianschoppmann.issuetracking.util.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.
-
-