public String getIssuePath() { MutableIssue targetIssue = issueManager.getIssueObject(getIssue().getId()); targetIssue = issueFactory.cloneIssueNoParent(targetIssue); return "/browse/" + targetIssue.getKey(); }
/** * Get the issue with updated Issue type and status. * Subclasses can over-ride if they need to set their own fields. * E.g Issue to sub-task conversion sets the new parent issue. * Security level remains intact. * * @return Cloned issue with updated issue ype and status */ protected MutableIssue getTargetIssueObjectWithSecurityLevel() { final ConvertIssueBean bean = getBean(); MutableIssue targetIssue = issueManager.getIssueObject(getIssue().getId()); targetIssue = issueFactory.cloneIssueNoParent(targetIssue); targetIssue.setIssueTypeId(bean.getIssueType()); if (bean.getTargetStatusId() != null) { targetIssue.setStatusId(bean.getTargetStatusId()); } return targetIssue; }