You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无需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)

  1. First, create and save a filter for the target sub-tasks:

    project = CIS AND summary ~ "Intake" AND issuetype = Sub-task AND status = Done
    

    Name this filter something like "Done Intake Sub-tasks".

  2. 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 15:16:00