For instance, if I have issues that have a 'Cost' or 'Man Days' field it would be great to have a dashboard gadget which displays the 'Total Cost' or 'Total Man Days' for all issues in my filter added together rather than listing the individual issues.
Maby this can do the trick: https://marketplace.atlassian.com/plugins/com.atlassian.cps.sumUp
It probably does (stubled on that almost immediately after my previous post).
But now I'll have to upgrade our JIRA from 5.1 to something higher because it only works from 5.2 and up ... some scheduling to do.
I think you can use Scripted Fields.
you can store the sum of two fields in a scripted field and that can be used in a 2D filter.
Please try eazyBI reports and charts plugin for JIRA - you can use it to create reports from totals of any custom numeric fields and analyze these totals by any standard JIRA fields as well as custom fields. Created eazyBI reports and charts can be published as JIRA dashboard gadgets as well.
This is also what I have found to be the best solution. Other then having to learn MDX, it's pretty nice.
The two dimensional filter statistics can make totals, but I'm affraid you can't use all of your filds.
If I were You I would check it.
Thanks Gyuri, I already use the 2D filter statistics a lot but it only counts the number of matching issues, it doesn't do anything to sum field values.
We are using the script runner plugin. With that easy scripting solution you can get field values and sum them, and insert the new value into anther filed. I don't have better idea now. There is a lot of possibilities in this plugin:
Now, we are developing an own plugin, but before that it was really big help.
Scripted fields work issue based, so not really helpful to do aggregated results accross issues (like sum of estimated working days per project).
2D filter also doesn't help because it's just summing up issues, not numeric field values.
eazyBI reports may very well solve the problem, but if you just want a gadget or two on the dashboard it's not really justifying the price tag. (I know, you get a lot more for that price, but if you don't need it you don't want to pay for it).
So my search continues ...
You can use the Structure plug-in.
Is is quite pricey but but it is very powerful to get a broader view of a project and its progress. It allows you to build a hierarchy similar to Windows Explorer.
It has a handy Sum Up function that will sum up the value of a field for all issues under another issue hierarchically.
I uses ScriptRunner's JQL functions.
For example, this one sums up all the values in the "word count" fields in unresolved issues in a test project.
project = TEST and resolution = EMPTY and issueFunction in aggregateExpression("total word count", "wordcount.sum()")