How to query issues which are not resolved in 50 hours

Need to list all issues which took more than 50 hours to resolve.

I use Jira 4.4.5, any queries to share with me ?

4 answers

1 accepted

Accepted Answer
0 votes

First, you will have to create a scripted date field that calculates the difference between createdDate and resolvedDate. Or create a calculate customfield yourself.

Once that is done, you can use it in JQL as the others already mentioned here.

I have also seen reports in marketplace which does this sort of thing, but don't remember which one. Maybe you can go through the options as well.

If you're using the "Time Tracking" function you just could try "timespent > 50h"

No, thats not what I am looking for.

In my situation, time spent may be 1 hour and we resolve it after 2-3 days. So, the calculation should be like Resolved > 'Created + 50 h'.

Sorry i just realized the first thing was wrong ;)

how about:

created < -50h AND status != Closed AND status != Resolved ORDER BY created DESC, key DESC

Thomas Schlegel Community Champion Jul 31, 2012

hmm, I think with this JQL you don't get the now closed issues that took more than 50 hours to resolve. You get only the issues that are more than 50 hours unresolved.

You would need something like "resolvedDate - creationDate > 50h", but I think, this is not possible, as far as I know.

edit: took me to long to write this up. forget about this comment ^^

Isn't that all issues created in the last 50 hours, which are not resolved or closed?

From what I understood Vishnu wanted to find all issues that were resolved but took more than 50h before getting into resolved state.

Yes, the problem ist that you cant use mathematical operators in JQL (as far as i know) so the best result would be to search for issues which are still not resolved or closed and were created for 50h or more :S

Thomas - That is what I am looking for.

Yes, you got it.

Does time spent fit your needs?

It goes against Logging work on an issue if that's enabled.

Benjamin- Nop, it doesn't fit.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

469 views 7 5
Join discussion

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