Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cstern-eenov committed Mar 9, 2020
1 parent 2533748 commit 1004cf7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/YouTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ export class YouTrackC {

init() {


const config = {
baseUrl: this.base_url,
token: this.token
};

this.youtrack = new Youtrack(config);

this.youtrack = new Youtrack(config);
}

getCurrentUser(){
Expand All @@ -42,17 +42,19 @@ export class YouTrackC {

}
async getProjects(): Promise<any>{
return await this.youtrack.projects.all();
var projects = this.youtrack.projects.all({$top:500});

return await projects;
}

async getIssuesFromProject(project: string){
return await this.youtrack.issues.search('project: '+project).then();
}

getExampleIssues(){
this.youtrack.issues.search('project: GAMEPLAY').then((issues) => {
// this.youtrack.issues.search('project: GAMEPLAY').then((issues) => {
//console.log(issues);
});
// });
}

async sendTime(issue: string,time:string,text:string){
Expand Down

0 comments on commit 1004cf7

Please sign in to comment.