}
jqlQuery = jqlQuery.replace(Consts.ISSUE_RLINK, issue.getKey());
}
}
User user = ComponentManager.getInstance().getJiraAuthenticationContext().getLoggedInUser();
SearchService.ParseResult parseResult = searchService.parseQuery(user, jqlQuery);
if (parseResult.isValid())
{
params.put("jqlNotValid", Boolean.FALSE);
Query query = parseResult.getQuery();
try
{
Map<String, IssueData> cfVals = new LinkedHashMap<String, IssueData>();
SearchResults results = searchService.search(user, query, PagerFilter.getUnlimitedFilter());
List<Issue> issues = results.getIssues();
for (Issue i : issues)
{
StringBuilder sb = new StringBuilder();
if (options.contains("status"))
{
sb.append(getI18nBean().getText("queryfields.opt.status")).append(": ").append(i.getStatusObject().getName());
}
if (options.contains("assignee") && i.getAssigneeUser() != null)
{
if (sb.length() > 0)
{
sb.append(", ");
}
User aUser = i.getAssigneeUser();
String encodedUser;
try
{
encodedUser = URLEncoder.encode(aUser.getName(), "UTF-8");
}
catch (UnsupportedEncodingException e)
{
//--> impossible
encodedUser = aUser.getName();
}
sb.append(getI18nBean().getText("queryfields.opt.assignee")).append(": ")
.append("<a class='user-hover' rel='").append(aUser.getName()).append("' id='issue_summary_assignee_'")
.append(aUser.getName()).append("' href='/secure/ViewProfile.jspa?name='").append(encodedUser)
.append("'>").append(aUser.getDisplayName()).append("</a>");
}
if (options.contains("priority") && i.getPriorityObject() != null)
{
if (sb.length() > 0)
{