Page History
Anchor | ||||
---|---|---|---|---|
|
Here are the most common examples of using S-JQL.
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Numbered Headings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Find issues added to a structureGoal: Suppose that you are using a structure named "My todo list" as a collection of issues, and you want to see in the Issue Navigator all issues added to this structure. How to achieve: In the Issue Navigator, switch to Advanced Searching and run the following query:
If you want to find issues added to the Default Structure, you can omit the structure name:
Quick Filter for JIRA Agile's (GreenHopper) Scrum Board to display only low-level issues in a structureSetup: Suppose that you are using a structure named "Project work breakdown" to organize tasks under higher-level "container" issues that provide an overview of your team's work. In this setting, the actual tasks are at the bottom level of the hierarchy. Also, suppose you are using JIRA Agile's Scrum Board to manage your sprints. Goal: You want to see only the actual tasks in backlog, hiding the container issues. How to achieve: Add a Quick Filter to your JIRA Agile (GreenHopper) board with the following JQL:
If your structure is organized such that two lower levels matter to you on the JIRA Agile board, you'll search for leaf issues and their parents with this JQL:
Retrieve all Epics in a certain status and all of their childrenSetup: You have a structure named "Enterprise Portfolio" with Epics on the top level, Stories beneath them, and Tasks with their Sub-Tasks occupying the lower levels of the hierarchy. Goal: You need to see Epics in status Assigned with all of their children. How to achieve: In the Issue Navigator, switch to Advanced Searching and run the following query:
If you want to see these issues in the structure, go to Structure Board and type this query in the Search Area in the JQL mode. Also, you can type only the last part of the query if you use S-JQL search mode:
Find Test Cases associated with Stories in an active sprintSetup: Suppose that you have a structure named "Enterprise Portfolio Testing", where you have Epics on the top level, Stories on the second level, then come Test Sub-Tasks, and finally Test Cases. Goal: You need to find those Test Cases that are associated with Stories in an active sprint. How to achieve: You can use Issue Navigator's Advanced Searching capability or open the structure on the Structure Board and use its Search Area in the JQL mode to run this query:
Or, you can type only the last part of the query if you use S-JQL search mode on the Structure Board:
Find all issues that are blocking critical issuesSetup: Suppose that you have a structure named "Dependency structure" where parent-child relationship corresponds to dependency: each child blocks its parent. (You might have configured a Links Synchronizer to synchronize this structure with the "Dependency" JIRA issue link.) Goal: You want to see all issues that are blocking critical issues, according to the structure. How to achieve: You'll need to find children of critical issues. You can use Issue Navigator's Advanced Searching capability or open the structure on the Structure Board and use its Search Area in the JQL mode to run this query:
Or, you can type only the last part of the query if you use S-JQL search mode on the Structure Board:
Find all unassigned issues in a part of a projectSetup: Suppose that you use a structure named "Project work breakdown" to break down your project into smaller pieces, so that if you have an issue somewhere in the structure, all of its children at all levels constitute a separate part of a project. Goal: You are focusing on a part of a project under the issue with key How to achieve: Use this JQL query to find all unassigned descendants of
Top-level view on unfinished parts of a projectSetup: Let's continue with the "Project work breakdown" structure from the previous example. Suppose that there are several top-level issues representing different parts of the project. Goal: You want to have a view on the parts of the project that are yet unfinished. How to achieve: In the Structure terms, you need to see the root issues that have unresolved descendants. To have a persistent view, create a Saved Filter with the following JQL:
Find violations of the rule "Tasks must be under Epics or Stories"Setup: You have a structure named "Planning" where you put issues of types Epic, Story, and Task. Your team follows the convention that Tasks are always put under Epics or Stories. However, as humans are fallible, sometimes a Task ends up being in a wrong place — either on the top level, or under another Task. Goal: You need to find Tasks that violate the rule, so that you can put them in the right place. How to achieve: In the Search Area on the Structure Board, run the following JQL search:
Find violations of the rule "An issue cannot be resolved if it has unresolved children"Setup: Suppose that "Planning" is a work breakdown structure. Your team follows the convention that an issue cannot be resolved unless all of its children are resolved. Goal: You need to find the issues violating this rule. How to achieve: In the Search Area on the Structure Board, run the following S-JQL search:
Find issues that can be resolved because all their children are resolvedSetup: Suppose that "Planning" is a work breakdown structure. Your team follows the convention that once all children of an issue are resolved, the issue can be resolved as well. Goal: You need a way to manually resolve those issues that have all of their children resolved. How to achieve: Open the structure on the Structure Board. When you paste the query given below into the Search Area (ensure that the JQL mode is selected), the issues that you can resolve will be shown. You can resolve them one by one. Here's the query you need:
Get a view of a second (third, ...) level of the hierarchySetup: There is a large structure named "Joint Effort" where different users track their issues on several levels: Customer Relations department works with the top-level issues, Project Managers break them down in several issues on the second level, Team Members work with issues under second-level issues. Goal: Each user wants to see only the relevant part of the structure. Customer Relations department wants to filter out lower-level issues to focus on the top-level ones, and Project Managers sometimes want to focus on just the second-level issues in the context of their parent requests. How to achieve: use the Search Area on the Structure Board to run the specific queries (ensure that the S-JQL mode is selected.) Toggle the Filter button to hide the issues on the lower levels. To see top-level issues, run this query:
To see second-level issues (top-level issues will be still displayed, but greyed out), run this query:
If you would need to dig even deeper, to see the third level but not the lower ones, you'd use this query:
|