Class YouTrackClient


  • public final class YouTrackClient
    extends Object
    • Constructor Detail

      • YouTrackClient

        public YouTrackClient​(javax.ws.rs.client.Client jaxrsClient,
                              URI baseUri,
                              String accessToken)
    • Method Detail

      • 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 attachment
        projectAbbrev - abbreviation of project
        basePath - Base path that Attachments.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)
      • getUsers

        public List<User> getUsers​(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 to IssueTag that contains all tags that are not other users' personal tags.