issues = linkCollection.getInwardIssues(linkType.getName()); break; case OUT: issues = linkCollection.getOutwardIssues(linkType.getName()); break; linkedIssues.addAll(linkCollection.getAllIssues());
Set<IssueLinkType> linkTypes = linkCollection.getLinkTypes(); if (linkTypes != null) List<Issue> outwardIssues = linkCollection.getOutwardIssues(issueLinkType.getName()); if (outwardIssues != null) List<Issue> inwardIssues = linkCollection.getInwardIssues(issueLinkType.getName()); if (inwardIssues != null)
public String getColumnViewHtml(FieldLayoutItem fieldLayoutItem, Map displayParams, Issue issue) { Map<String, Object> velocityParams = getVelocityParams(fieldLayoutItem, null, issue, displayParams); LinkCollection linkCollection = issueLinkManager.getLinkCollection(issue, authenticationContext.getUser()); velocityParams.put("linkedIssues", linkCollection.getAllIssues()); velocityParams.put("applicationProperties", getApplicationProperties()); return renderTemplate("issuelinks-columnview.vm", velocityParams); }
/** * 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(); }