The purpose of the plugin is to retrieve the number of bugs associated to a project.
Here is how it can be done...
A Jira query is created that filters what we are interested in.
The plugin calls the request (See http://confluence.atlassian.com/display/JIRA/JIRA+RPC+Services)
Then we count the number of issues that come back and display it
A link is added on the metric that sends directly to the filter in Jira
For this initial version, the raw http request should be used (use Find issues in Jira and then export to XML)
This metric is only calculated at Project level, not at any other level