예제 #1
0
 public YouTrackService()
 {
     serverUrl  = "https://kpfu-net.myjetbrains.com/youtrack";
     connection = new BearerTokenConnection(serverUrl,
                                            "perm:YW5nZWxh.NTUtMw==.PBKFTDQmoWvoxdzM7t5TPWPtKrTeOI");
     issueService   = connection.CreateIssuesService();
     timeService    = connection.CreateTimeTrackingService();
     projectService = connection.CreateProjectsService();
 }
예제 #2
0
        // GetProjects
        public static ICollection <YouTrackSharp.Projects.Project> GetProjects(BearerTokenConnection connection)
        {
            var projects = connection.CreateProjectsService().GetAccessibleProjects();

            return(projects.Result);
        }