Error:(26, 88) java: cannot find symbol
symbol: variable issue
location: variable project of type youtrack.Project
import youtrack.*;
import java.util.List;
public class Main {
public static void main(String[] args) throws Exception {
//Access a YouTrack instance by its REST URL.
final YouTrack youTrack = YouTrack.getInstance("http://youtrack.jetbrains.com/rest/");
//Try to log in using some credentials.
youTrack.login("megor", "password");
//Get a list of all projects.
final List<Project> projectList = youTrack.projects.list();
System.out.println("Total projects: " + projectList.size());
//Getting a specific project by its ID.
final Project project = youTrack.projects.item("DOC");
System.out.println("Project " + project.getName() + " total issues: " + project.issue.list().size());
}
}
Error:(26, 88) java: cannot find symbol symbol: variable issue location: variable project of type youtrack.Project