Hi Muskan,
Sadly you cannot achieve the desired search using standard features on Jira, you must go for a third-party app instead. Using i.e. JQL Booster Pack you can type the following:
Search all Stories without subtasks
type = Story AND
issue
NOT
IN
hasSubtasks()
Using this app you can also query other issues relations, check:
References:
Hope this helps you to create awesome queries <3
Kind regards
Much like your other query on Epics, you'll need an app to achieve this using JQL. We use ScriptRunner but there will be other options depending on your host type.
So you could do this query:
issueFunction not in parentsOf("project = VER") and issuetype = Story
^ I added the Story search because otherwise it finds any issue without a standard Sub-task parent - such as Epics or Sub-tasks themselves! You could extend this to:
issueFunction not in parentsOf("project = VER") and issuetype in (Story, Bug, Task)
...if you needed to.
To add, you could use this search also - but only in the Server versions. According to documentation, this is not available in Cloud:
issuetype = Story and issueFunction not in hasSubtasks()
Unsure which host type you're on - but for more information on ScriptRunner parent searching for Cloud here and Server here.
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Stephen Wright _Elabor8_ thanks for this answer!
As a follow up, I'm wondering how I can query for a story without a sub task of a specific sub task type.
For example, we have "Dev Task" and "QA Task" that are both sub-tasks, and I want to query for a story with no "QA Task" sub tasks.
Is this possible?
Kind regards,
Andrew
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Something like this should work:
issueFunction not in parentsOf("issuetype = 'QA Task'") AND issuetype not in subTaskIssueTypes()
This provides all issues which are...
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Stephen Wright _Elabor8_ thank you! I had to put single quotes around 'QA Task' and it seems to have worked.
Andrew
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good spot @andrew_smith_veeva! I've modified the answer to include the single quotation marks.
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, everyone!
Since we here have no specific policy to treat task and subtask diferently when is comes to dates or kanban status, many times I would have tasks and subtasks to follow up, but to filter them only by status is no good, because it return parent PLUS their child results. And I just need to see the last hierarchical level.
The Kanban board does the right job, positioning the last level in the columnns when filtering by subtasks, but it is HORRIBLE to visualize the work to be done in a compilated form. So to create a filter is necessary.
That said, is there any suggestion for a script (and its plugin) to achieve this filters where i can see:
1. Subtasks + no parent Tasks with the "To Do" status in a project
2. Subtasks + no parent Tasks with the "In Progress" status in a project
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use any third party plugin like JQL Search Extensions for Jira & reports its available for cloud and server both
Following query will get all stories without sub tasks
issue in subtaskCountLessThan("1") and type=Story
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This can be achieved using Scriptrunner plugin without that its difficult to find.
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.