如何为JQL+ScriptRunner看板查询添加关联问题的子任务显示?
Add Subtasks to Your Existing JQL+ScriptRunner Query
Got it, let's tweak your existing query to include subtasks for all the issues it already displays. Here's the updated version that does exactly what you need:
(issueFunction in linkedIssuesOf("assignee = currentUser()", "has Epic") OR issueFunction in linkedIssuesOf('issueFunction in linkedIssuesOf("assignee = currentUser()", "has Epic")', 'is epic of')) OR issueFunction in subtasksOf("(issueFunction in linkedIssuesOf(\"assignee = currentUser()\", \"has Epic\") OR issueFunction in linkedIssuesOf('issueFunction in linkedIssuesOf(\"assignee = currentUser()\", \"has Epic\")', 'is epic of'))")
Breakdown of the changes:
- The first parenthesized block is your original working query—it grabs all epics linked to your assigned tasks, plus the tasks under those epics.
- The new
OR issueFunction in subtasksOf(...)clause targets every issue returned by your original query and pulls in all their associated subtasks. We wrap the full original query insidesubtasksOf()(with escaped double quotes\"to avoid JQL syntax errors) so it only includes subtasks related to the issues you care about.
A quick note: If you want subtasks to appear nested under their parent tasks in your Kanban board, make sure your board's settings are configured to show subtasks in their parent's swimlane or group them appropriately. But the JQL above will ensure they're included in the results regardless.
内容的提问来源于stack exchange,提问作者traveh
相关产品推荐
相关产品推荐

