In case of a rich custom modelisation (many priorities and/or statuses) and many existing reports, it may be usefull to provide a toggle feature on section in right panel.
By deploying the attached files as follow :
- /secure/views/browser/browseproject.jsp (modified from release 3.7.4)
- /includes/panels/browser/openissues.jsp (modified from release 3.7.4)
- /template/plugins/webfragment/browse-project-reports.vm
- /images/icons/icon_minus.gif
- /images/icons/icon_plus.gif
you are able to obtain this ...

As you see, a new section is available "Predefined Reports", which will display all predefined reports provided by any Web Item module having "browser.project.preset.reports" as section.
In your plugin definition (atlassian-plugin.xml), you have to declare each required WebFragment ...
<atlassian-plugin key="your.company.jira" name="Your Company Plugin"> ... <!-- Web Fragment for Reports --> <web-item key="your.webitem.report.key" name="Your Report Name" i18n-name-key="webfragments.preset.reports.item.your.report.name" section="browser.project.preset.reports" system="false" weight="90"> <label key="your.webitem.report.label" /> <link linkId="your.webitem.report.key">/secure/ConfigureReport.jspa?reportKey=your.company.jira.plugin.report:your-report</link> <condition class="com.atlassian.jira.plugin.webfragment.conditions.YourCondition"/> <resource type="i18n" name="i18n" location="your.company.jira.webfragments.reports" /> </web-item> ... </atlassian-plugin>
Note that JiraWebActionSupport.properties files have to be updated with
common.concepts.predefined.reports=Predefined Reports
Enjoy.
Kaamelot
