Class LastVisitedNavigationItemHelper

java.lang.Object
com.atlassian.jira.projects.sidebar.lastvisited.LastVisitedNavigationItemHelper

@Component public class LastVisitedNavigationItemHelper extends Object
Responsible for retrieving NavigationItems in the sidebar, including the summary (which is not normally returned as it does not have a corresponding web-item).
  • Constructor Details

  • Method Details

    • getNavigationItemById

      public Optional<NavigationItem> getNavigationItemById(String navigationItemId, Project project)
      Given a web-item ID and a project, find the corresponding NavigationItem.
      Parameters:
      navigationItemId - The ID of the web-item that we want to get the NavigationItem for
      project - The project that the web-item is in
      Returns:
      An Optional over NavigationItem that contains the corresponding NavigationItem, if it was found