The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Show story with subtasks in JQL

Eric Roetenberg
Contributor
June 3, 2024

Hello

 

I have a JQL filter that shows all stories with a parent link xxxx and ZZZZ
But these story also have Subtasks how can I get them to show up in the filter too.

or is this not possible without ADDON

Grtz. Eric

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Heenaben Sardarbhai Chaudhary
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 4, 2024

Hi @Eric Roetenberg ,

issuetype = Story AND "Parent Link" in (xxxx, ZZZZ)

To include the subtasks of these stories in the same filter, you need to use the parent field in JQL. Unfortunately, JQL does not support subqueries directly, so you must manually combine the conditions for the stories and their subtasks.

Without Addons: Manually combine the queries by running the story query first and then including their subtasks.

With Addons (like ScriptRunner): Use advanced JQL functions provided by the addon to combine the queries dynamically.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events