Inject ProjectManager into your plugin code and use projectManager.getProjectObjects() to get a list
Or just get the component:
ProjectManager projectManager = ComponentManager.getComponentInstanceOfType(ProjectManager.class); Collection<Project> projects = projectManager.getProjectObjects();
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot