JQL computations / SQL queries

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?)

4 answers

1 accepted

0 vote

There are no analytical functions in JQL... it's not possible. You could write your own JQL function to help you find issues that are 20% past their due date, or you could write a custom field that shows the %age past due date and query on that, but in terms of doing ad hoc analytical stuff, JQL is not the answer.

You can do it in SQL... maybe someone will have an example for that. aggregatetimespent IIRC is time spent including subtask time.

Hi,

Try if

https://marketplace.atlassian.com/plugins/pt.lt.lfcribeiro.jira.jqlLTFunctions

Solves your problem, it has a executeQuery() JQL that lets you run SQL

Regards,

Not availble in OnDemand.

Not in Cloud, bit for JIRA server SQL for JIRA exactly does what you are asking for...

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 2 hours ago in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

13 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you