Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Include subtasks in JQL query for Slack integration

Austin Lo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 25, 2020

Hi all--

 

Trying to set up slack integration-- 

 

Want to send all updates for issues labeled "foo" , but also include updates on subtasks where the parent Story is labeled "foo"-- doesnt really matter how it behaves if the subtask itself has a label. 

 

In the query, I can put in "labels = foo" to get all the issues labeled "foo"--but what I really want is something like "labels = foo OR parentIn (labels=foo)

 

Is there a way to do this?

2 answers

1 vote
Jack Nolddor _Sweet Bananas_
Atlassian Partner
May 26, 2020

Hi Austin_Lo,

Sadly you cannot achieve the desired search using standard features on Jira, you must go for a third-party app instead. Using i.e. JQL Booster Pack you can type the following:

 

1) Query for issues having a given label and their subtasks

labels = foo OR issue IN subtasksOf(' labels = foo ')

(*) Note that this is just an example, you must tune above query to fit your needs.

 

Using this app you can also query other issues relations, check:

 

References:

Luiz Silva
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2020

FWIW it does not work with Jira Cloud.

Jack Nolddor _Sweet Bananas_
Atlassian Partner
May 29, 2020

You're right, my mistake.

I didn't notice the user was on Cloud T__T

0 votes
Luiz Silva
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2020

Hi!

Unfortunately, such JQL (accessing parent or child attributes) is not supported in Jira Cloud.

An alternative solution could be achieved using Jira automation. You could, for instance, create a rule that labels child issues according to the parent. There's a blog post explaining this idea in more details here

Hope that helps.

Cheers!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events