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

如何获取子任务的父问题类型?寻求隐藏特定子任务的免费JQL方案

Solutions to Hide Subtasks of Specific Parent Issue Types in Jira (Without Expensive Plugins)

Got it, let's tackle this Jira issue where subtasks of Stories/User Stories keep showing up even when you hide those parent issue types in your board. ScriptRunner is great but way too pricey for a single line of code—here are some free, practical alternatives:

1. Native Jira Workaround (No Plugins Needed)

If you want to avoid plugins entirely, you can use a custom field + automation to replicate parent issue type filtering:

  • Step 1: Create a custom field
    Go to Jira Settings > Issues > Custom fields, add a new field (e.g., "Parent Issue Type" as a single select or text field). Map it to all issue types that include subtasks.
  • Step 2: Set up automation rules
    Navigate to Project Settings > Automation and build two rules:
    1. When a subtask is created, copy the parent issue's type to the subtask's "Parent Issue Type" field.
    2. When a parent issue's type is updated, sync that change to all its existing subtasks' "Parent Issue Type" field.
  • Step 3: Filter with JQL
    Now you can use this custom field in your board's filter JQL:
    issuetype not in (Story, "User Story") AND "Parent Issue Type" not in (Story, "User Story")
    
    This excludes both the parent Stories/User Stories and their subtasks.

2. Free JQL Plugins That Add Parent Issue Filtering

If you'd prefer a plugin-based solution without the cost of ScriptRunner, these free options work well:

  • JQL Extensions for Jira (Free Version)
    This plugin adds a parentIssueType() function to JQL, letting you directly reference the parent's issue type. Your filter would look like:
    issuetype not in (Story, "User Story") AND parentIssueType() not in (Story, "User Story")
    
    The free version supports core functions like this, which is exactly what you need.
  • Advanced JQL Functions (Free Version)
    Use the subtasksOf() function to exclude subtasks of specific parent issues. Your JQL would be:
    issueFunction not in subtasksOf("issuetype in (Story, 'User Story')")
    
    This filters out any subtask whose parent is a Story or User Story, while keeping other issues intact.

3. Board-Specific Quick Filter Tweak

If you're using a Scrum or Kanban board, you can add a quick filter using the above JQL snippets. Just go to Board Settings > Quick Filters, click "Add filter", paste your JQL, and name it something like "Hide Story Subtasks". You can toggle this filter on/off as needed.

内容的提问来源于stack exchange,提问作者Marks

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.21 06:49:04