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(); }
// GetProjects public static ICollection <YouTrackSharp.Projects.Project> GetProjects(BearerTokenConnection connection) { var projects = connection.CreateProjectsService().GetAccessibleProjects(); return(projects.Result); }