my query is issuettype = Epic AND status = Complete AND issutetype = Story AND status = "In Progress"
However, the query is not returning any data and I know there are records out there because I have come across them accidentally.
@Nichelle Wagner This is an issue with your JQLWhen you use AND the issue must be both conditions. Here you are saying must be an EPIC AND STORY. No issue can be both issue types at the same time. So it should ready OR rather than AND. issuettype = Epic AND status = Complete AND OR issutetype = Story AND status = "In Progress"This will return issues that are:epics in the status complete storys in the status "In Progress"Here is some free documentation:Use advanced search with Jira Query Language (JQL) | Jira Work Management Cloud | Atlassian SupportHere is a skill building training course I recommend to better understand when to use AND vs OR . Intro to JQL in Jira Software : AtlassianHope this helps! Please give it a try and if this fixes it 'Accept' the answer so others know this works!
Re-reading this though I think you are searching for stories that are open but their parent epic is not. I actually have a scheduled automation that runs to check this. But it is not something without listing out your epics via JQL that can be done without an addon. I am assuming a lot here but if you want this data so you can update these issues accordingly see this automation to point you in the right direction. You can follow this and tweak it per your needs. You can also adjust the trigger to be when an issue is transitioned.. etc.
The EPIC is marked Done, but in some instances the Story is still open. I want to find all instances where the EPIC is marked Done and the associated Story is showing as "In Progress".
@Nichelle Wagner the automation will be similar with a few tweaks to above.. if you want reach out on linkedIn ill be happy to help and after we can update this with the final solution.
Hi @Nichelle Wagner @Scott Morris
Unfortunately, this is trickier than one might think; as a hierarchical query, it would really require some kind of join or subquery, which isn't available in plain Jira/JQL.
A few directions forward:
If you want to run your search dynamically, without manually "stitching" two queries together, you'll need extra tooling:
Hope this helps,
Best,
Hannes
... and to expand on the last point: If you're open to solutions from the Atlassian Marketplace, your use case should be easy to solve using the app that my team and I are working on: JXL for Jira.
JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you’d do in e.g. Excel, Google Sheets, Smartsheet, or Airtable. It also comes with a long list of so-called smart columns that aren’t natively available, including the parent status.
So the easiest way forward would probably be to add status and parent status columns to your sheet, and filter down to the relevant stories like e.g. so:
I should add that JXL can do much more than the above, and would actually offer multiple possible solutions to what you're looking for. Its advanced features include e.g. support for (configurable) issue hierarchies, issue grouping by any issue field(s), sum-ups, or conditional formatting.
This all just works - there's no scripting or automation whatsoever required.
Any questions just let me know!
It looks like you're new here. Sign in or register to get started.