Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-19348

Remember Admin pages I have visited and display the last 5 in the Admin menu

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      It would be nice if the new smart menus would remember the last admin sections I visited (I think 5 would be good but it should be configurable from the jira-application.properties file)

      The way I see it working is:

      • Add javascript to the admin decorator (include a web resource rather than inline javascript). This will add a click listener to all admin links. This listener will do an ajax request to a REST end-point. This listener doesn't stop the page navigating to the desired page.
      • Rest end-point - This will take the id (from the id attribute of the anchor) and store it in persisted history
      • Persisted history - create a AdminUserHistoryManager (very similar to ProjectUserHistoryManager)
      • create AdminHistorySimpleLinkFactory (similar to ProjectHistoryLinkFactory) and add it to system-top-navigation-plugin.xml.

      Will need unit tests for the AdminUserHistoryManager, AdminHistorySimpleLinkFactory and AdminHistoryResource (REST).

      Selenium tests to for functional coverage.

      Note. AdminUserHistoryManager should most probably just deal with keys (Strings).
      AdminHistorySimpleLinkFactory will need to convert keys to WebItems to SimpleLinks.
      To convert keys to WebItems - get all JiraWebItemModuleDescriptors from the PluginAccessor using a ModuleDescriptor predicate that checks for the link id.
      Look at the SimpleLinkManager on how to convert these to SimpleLinks. (Most probably extract this logic into a helper class).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nick.menere Nick Menere [Atlassian] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40h
                  40h