Hello everyone ,
I need your help to provide a query that list all stories with status incomplete and under epics that are complete.
Hi, @hisham Osman; welcome to the community!
I am afraid you cannot get this result from Jira "out-of-the-box" in a scalable way. But if you have the issue key for each epic, your JQL would be something like:
project = "YOUR_PROJECT" and type = story AND (statusCategory in ("In Progress", "To Do") or resolution is empty) and "Epic Link"= KEY
However, if your site has ScriptRunner, you can create the following ScriptRunner Enhanced Search:
project = "YOUR_PROJECT" and type = story AND (statusCategory in ("In Progress", "To Do") or resolution is empty) and issueFunction in issuesInEpics("statusCategory='done'")
Cheers,
Alex
@Alex Don't you think we should also include stories with statusCategory as "To Do" as well in the above JQL queries?
Please correct me if I am wrong here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the smartest way would probably be
"resolution is empty"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I agree with @Colton.Kosicek on that since Resolution field is the right way to determine if an issue is resolved/closed or still incomplete.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Taranjeet Singh and @Colton.Kosicek
Thanks for pitching in with your suggestions, I loved the engagement 😃!!
Yeah, we definitely make the JQL better by adding the statusCategory as "To Do" to both suggestions, actually I have already done that.
But even though, I am positive that resolution is the way go to, we need to make sure that the resolution is filled when the ticket reaches a done status. Therefore, I will consider it as an option for sure.
Cheers,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the community,
you can achieve the required functionality by using a third party plugin, famous one's are
below is the example of JQL Search Extensions for Jira & reports
find all epics with status=done where child's status is not equal to done
issue in epicOf("status!=done") and status=done
Regards,
Mayur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @hisham Osman ,
With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. If your use case is more dynamic than that, look beyond standard Jira.
Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service JQL Search Extensions
After you install the app, you can simply search:
issue in childrenOfEpicsInQuery("resolution is not empty") AND resolution is empty
Check out the documentation for more examples.
I hope this helps!
Daniel
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.