Interface Dashboard


public interface Dashboard
An abstraction for logically grouping JIRA dashboard functionality for functional tests. When used as a return value it also implies that the current location is the dashboard.
Since:
v3.13
  • Method Details

    • enableConfigureMode

      Dashboard enableConfigureMode()
      Turns on configuration mode for the dashboard. If it is already turned on, has no effect. If the current user has the default dashboard, subsequently they will have a custom dashboard, even though it will be configured the same as the default dashboard. Needs to be on the dashboard to work.
      Returns:
      this in a FluentInterface style.
    • disableConfigureMode

      Dashboard disableConfigureMode()
      Turns off configuration mode for the dashboard. If it is already off, it has no effect. Expects to be on the Dashboard to work.
      Returns:
      itself.
    • addPage

      Dashboard addPage(SharedEntityInfo info, Long cloneId)
      Add the passed dashboard page to JIRA.
      Parameters:
      info - the basic information for the dashboard.
      cloneId - the id of the dashboard to clone. Can be null to clone the blank dashboard.
      Returns:
      the navigator object.
    • editPage

      Dashboard editPage(SharedEntityInfo info)
      Change the passed dashboard page in JIRA.
      Parameters:
      info - the basic information for the dashboard.
      Returns:
      the navigator object.
    • getDashboardPageId

      Long getDashboardPageId(String dashboardPageName, Locator pagesLocator)
      Find the id of the dashboard page with the given name from a table to dashboard pages.
      Parameters:
      dashboardPageName - the name of the dashboard to find.
      pagesLocator - the location of the table listing the dashboard.
      Returns:
      the identifier if the dashboard page or null if no such page exists.
    • favouriteDashboard

      Dashboard favouriteDashboard(long id)
      Make the passed dashboard one of the logged in user's favourites.
      Parameters:
      id - the id of the dashboard to favourite.
      Returns:
      this object so that the requests can be chained.
    • unFavouriteDashboard

      Dashboard unFavouriteDashboard(long id)
      Remove the passed dashboard from the user's favourites.
      Parameters:
      id - the id of the dashboard to unfavourite.
      Returns:
      this object so that the requests can be chained.
    • resetUserSessionState

      Dashboard resetUserSessionState()
      Reset user session state.
      Returns:
      this object so that the requests can be chained.
    • resetToDefault

      Dashboard resetToDefault()
      Reset the dashboard configuration to its initial state.
      Returns:
      this object so that the requests can be chained.