Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-14321

When developing a project tab plugin, the showPanel method is called only once for all of the project portlets on the dashboard.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • None
    • Dashboard & Gadgets
    • None

    Description

      We have are developing a plugin that adds a tab panel to a project in the "Browse Project" section.
      We are overriding the showPanel method ( inherited from AbstractProjectTabPanel.java ) to hide or show the panel on a per project basis.

      However, when using multiple project portlets on the dashboard, the showPanel(... , ...) method is called only once and uses the currently selected project. So every project that are shown on the dashboard in project portlets might have or not the tab panel, according to the currently selected project.

      Would it be possible to call the showPanel method on every project portlet to show or hide the tab panel ?

      To reproduce the problem:
      1) create a project tab panel plugin that is available for a subset of your projects
      2) add 2 project portlets, 1 in this subset and another that isn't
      3) Browse to the project that is in the subset
      4) return to the dashboard
      now both projects should have the tab panel activated.

      Thanks for your time

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              5eb1523bdb84 Philippe Breault
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: