Hi,
I'm trying to find a way to find issues that have an EMPTY remaining estimate, as a JQL query.
If I use remainingEstimate is EMPTY, I will find all issues that do not have anything in the remaining estimate field, but it will also return any issues that have linked tasks that are estimated (e.g. Epics that contain estimated stories, or Stories that contain estimated Sub-Tasks).
I am looking for a way to handle this with ScriptRunner issue functions, but have hit a wall. Any suggestions would be greatly appreciated.
**EDIT**
I think I've discovered the source of the problem - all of the issues I am looking at are in Structure. If I add a new issue outside of Structure, or I unpin an issue from Structure, it will show up correctly in my filter. I am on Structure v4.5.1 - perhaps an update addresses this issue. If anyone from ALM Works is reading and can chime in, I would appreciate it!
Hello Steve,
I think the following query should properly work for you:
remainingEstimate is EMPTY and issueFunction in issuesInEpics("remainingEstimate is EMPTY") and issueFunction in parentsOf("remainingEstimate is EMPTY")
For more information, you can check Scriptrunner JQL Functions documentation:
Let me know if it works for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome, Steve!
Have a nice weekend.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Upon further investigation, this is actually not solving the problem. I am still seeing issues that have a Σ Remaining Estimate (as seen in the image below):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Steve,
That's really strange. That query has properly worked for me.
Can you please confirm to us what is your JIRA Server version?
Also, have added any other parameters to the query I provided you or you just copied and pasted that in your issue navigator?
We will be waiting for your answer to further investigate it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree that this is really odd - I don't really understand why it wouldn't work.
I am on JIRA v7.6.4 (server) and am using ScriptRunner v5.4.47.
The full query I am using is:
project = XXXX AND resolution = Unresolved AND remainingEstimate is EMPTY AND issueFunction in issuesInEpics("remainingEstimate is EMPTY") AND issueFunction in parentsOf("remainingEstimate is EMPTY")
I have also tried:
project = XXXX AND resolution = Unresolved AND resolution = Unresolved AND (remainingEstimate is EMPTY OR issueFunction in issuesInEpics("remainingEstimate is EMPTY") OR issueFunction in parentsOf("remainingEstimate is EMPTY"))
And:
project = XXXX AND resolution = Unresolved AND remainingEstimate is EMPTY AND (issueFunction in issuesInEpics("remainingEstimate is EMPTY") OR issueFunction in parentsOf("remainingEstimate is EMPTY"))
None of these are giving me the result I'm looking for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
**EDIT**
I think I've discovered the source of the problem - all of the issues I am looking at are in Structure. If I add a new issue outside of Structure, or I unpin an issue from Structure, it will show up correctly in my filter. I am on Structure v4.5.1 - perhaps an update addresses this issue. If anyone from ALM Works is reading and can chime in, I would appreciate it!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Steve. Thanks, Bastian (and Petterson)....
From what I see here, it looks like the question we should investigate is what link types are involved — whether they are created through Structure, or some other method — and how your script is handling them.
Given all of the moving pieces, I think the best way to get to the bottom of this, Steve, would be for you to open a support ticket with us [ALM Works] so we can marshal the right resources, and find the right/best answer. We’d be happy to involve the ScriptRunner guys at Adaptivist as/if necessary. We work with them frequently.
Then, we can post an update to this thread so everyone can benefit.
Does that work for you?
-dave [ALM Works]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That sounds great!
I actually created a support ticket with ALM Works as soon as I figured out that Structure was the missing piece of the puzzle.
Ticket: ALM-8579
Looking forward to getting to the bottom of this! :)
Thanks for the support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course! I‘m sure we’ll get to the bottom this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you a lot for your help, @Dave Rosenlund _Trundl_!
I will be looking forward to your investigation results to know what could be possibly causing this strange behavior.
Have a nice week you all! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
**UPDATE**
After much research and a lot of fiddling with various plugins, I have found a solution to the problem.
The query that I am using now (that actually works!) is as follows:
(remainingEstimate is EMPTY OR issueFunction in parentsOf("issuetype = sub-task AND remainingEstimate is EMPTY"))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.