long attributeId = targetCell.getParentAttribute().getAttributeId();
long componentId = targetCell.getParentComponent().getComponentId();
for (Bug bug : lookupByComponent.get(componentId)) {
String linkText = "Component - " + Long.toString(bug.getExternalId()) + ": " + bug.getTitle();
Anchor anchor = new Anchor(linkText, bug.getBugUrl());
content.add(anchor);
}
for (Bug bug : lookupByAttribute.get(attributeId)) {
String linkText = "Attribute - " + Long.toString(bug.getExternalId()) + ": " + bug.getTitle();
Anchor anchor = new Anchor(linkText, bug.getBugUrl());
content.add(anchor);
}
for (Capability capability : targetCell.getCapabilities()) {
long capabilityId = capability.getCapabilityId();
for (Bug bug : lookupByCapability.get(capabilityId)) {
String linkText =
"Capability - " + Long.toString(bug.getExternalId()) + ": " + bug.getTitle();
Anchor anchor = new Anchor(linkText, bug.getBugUrl());
content.add(anchor);
}
}
String labelText = "Unassigned - " + unassignedBugs.size();
Label label = new Label(labelText);