public Map<String, String> getProjectsUserLeadsError() { final Map<String, String> projectNamesAndURLs = Maps.newHashMap(); for (Project project : getProjectsUserLeads()) { UrlBuilder fullURL = newUrlBuilder(); fullURL.addPaths("/plugins/servlet/project-config"); fullURL.addPaths("/" + project.getKey() + "/summary"); projectNamesAndURLs.put(project.getName(), fullURL.asUrlString()); } return projectNamesAndURLs; }
public Map<String, String> getComponentsUserLeadsWarning() { final Map<String, String> componentNamesAndURLs = Maps.newHashMap(); for (ProjectComponent component : getComponentsUserLeads()) { UrlBuilder fullURL = newUrlBuilder(); fullURL.addPaths("/plugins/servlet/project-config"); Project project = getProjectManager().getProjectObj(component.getProjectId()); fullURL.addPaths("/" + project.getKey() + "/components"); componentNamesAndURLs.put(component.getName(), fullURL.asUrlString()); } return componentNamesAndURLs; }
urlBuilder.addPaths("/issues/"); urlBuilder.addParameterUnsafe("jql", "assignee%20in%20(" + JiraUrlCodec.encode(user.getName(), true) + ")%20ORDER%20BY%20priority%20ASC"); urlBuilder.addPaths("/issues/"); urlBuilder.addParameterUnsafe("jql", "reporter%20in%20(" + JiraUrlCodec.encode(user.getName(), true) + ")%20ORDER%20BY%20priority%20ASC");