/** * Returns true if there were no errors and issue has local links. * * @param user current user * @param issue current issue * @return true if issue has local links */ private boolean hasIssueLinks(ApplicationUser user, Issue issue) { final IssueLinkService.IssueLinkResult result = issueLinkService.getIssueLinks(getLoggedInUser(), getIssueObject()); return result.isValid() && !result.getLinkCollection().getAllIssues().isEmpty(); }