I'm trying to find stories without subtask using Scriptrunner Enhanced Search by this query:
not issueFunction in subtasksOf("project = ilab and issuetype = story") and project = ilab and issuetype = story
but query returns stories from this project with and without subtasks.
Please tell me what I doing wrong.
Thank you for your question.
I can confirm that ScriptRunner for Jira Cloud provides the parentsOf() JQL function as described in the documentation page here which is designed to search for parent issues which match a certain query.
You will be able to use this function in order to look to create a query which matches your requirement of finding all parent issues of a certain issue type that do not have any sub tasks.
I have found the community article located here which explains how to do this and based on this an example of how to find all parent issues of a certain issue type without a certain type of subtask I have created a knowledge base article located here which explains how to find all story issues with no subtasks.
I hope this information helps.
Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event