无需Scriptrunner的JQL查询:获取含Done状态Intake子任务的Story
Solution to Find Parent Stories of Specific Done Sub-tasks
Since you can't use Scriptrunner's issueFunction, here are two standard JQL approaches to get the Stories that have Done sub-tasks with "Intake" in the summary:
Method 1: Use a JQL Subquery (if your JIRA instance supports it)
This directly references the parent of the matching sub-tasks in a single query:
issuetype = Story AND project = CIS AND issue in ( select parent from issue where project = CIS AND summary ~ "Intake" AND issuetype = Sub-task AND status = Done )
Method 2: Use a Saved Filter (compatible with all JIRA versions)
First, create and save a filter for the target sub-tasks:
project = CIS AND summary ~ "Intake" AND issuetype = Sub-task AND status = DoneName this filter something like "Done Intake Sub-tasks".
Then use this filter to find the parent Stories:
issuetype = Story AND project = CIS AND issue in linkedIssues(filter = "Done Intake Sub-tasks", "Parent")Note: Adjust the link type
"Parent"if your JIRA uses a different label for parent-child links (e.g.,"is parent of").
内容的提问来源于stack exchange,提问作者Marco
相关产品推荐
相关产品推荐

