Is there a way to have the issues function (in short, JQL) in JIRA perform basic computations? I realize it's not a reporting tool, it's used to find and select issues - but I want, say, an indicator for which issues are significantly over their estimates. If it can't be done in JQL, can I run a SQL query instead?
In SQL, I believe that is
select issuekey from {somewhere} where
(timespent + timeestimate) > (1.2*timeoriginalestimate) and
(timespent + timeestimate) > 2
(I'm not sure what aggregatetimespent contains. A total of time spent across iterations, perhaps?)