How can I use JQL to identify parent issues in a specific JIRA Structure?

Hey everyone,

I’m working with JIRA and trying to figure out how to use JQL (JIRA Query Language) to find all the parent issues in a particular Structure. I know the basics of JQL, but I’m new to the Structure plugin and feeling a bit overwhelmed.

Does anyone know if there’s a specific JQL command or syntax for this? I’ve been looking through the documentation, but I’m having trouble putting together the right query.

Any help or examples would be really appreciated. Thanks in advance!

Based on my experience with JIRA Structures, here’s an effective JQL query you can use:

issue in structure(‘StructureName’) AND issueFunction in hasIssueInSubtree(‘issueType != Sub-task’)

This query first selects all issues in your specified structure, then filters for those that have non-subtask issues beneath them in the hierarchy. It’s a reliable way to identify parent issues.

Remember to replace ‘StructureName’ with your actual structure name. Also, ensure you have the necessary permissions to view all issues in the structure, as this can affect your results.

If you’re still having trouble, consider reaching out to your JIRA administrator for assistance with permissions or structure-specific configurations.

hey there ClimbingLion! i’ve been down that rabbit hole before lol. try this JQL:

‘issue in structure(“YourStructureName”) AND issuetype in standardIssueTypes() AND issueFunction in hasChildren()’

it’ll grab parent issues in ur structure. good luck mate!

Working with JIRA Structures has its learning curves. In my experience, a good JQL to retrieve parent issues from a specific structure is:

issue in structure(‘Your Structure Name’) AND issueFunction in parentsOf(‘issue in structure(“Your Structure Name”)’)

Replace ‘Your Structure Name’ with the name of your structure. This query first retrieves all issues within the structure, and then filters them to show only the parent issues. It’s also important to check that you have the necessary permissions, as missing permissions might lead to unexpected empty results.

Hope this insight helps clarify things.