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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

JQL-Command to filter out a sub-task with a parent-task with a specific component

Dear Sir or Madam,

I am not sure if this is the right topic. I have not found any JQL-related topic that is why I post it in the general "Jira"-topic.

we are using quick-filters for the kanban-board in Jira. In 1 quick-filter we want to see

  1. only the tasks which have a specific component. We have a quick-filter which uses this JQL code: 'component = <component-name>'
  2. and we would like to see all sub-tasks of these tasks. Something like 'parent has (component = <component-name>) AND type = SubTask' would be nice to have - is there any JQL-code which can do this job and display also the sub-tasks which have a (super-)task which has a specific component?

 

Thanks in advance

Joel

4 answers

1 accepted

1 vote
Answer accepted

The working JQL is:

Component = "<component name>" or issueFunction in subtasksOf('component = "<component name>"')

 So, when you want to check a component of a super-task (meaning you are looking at a sub-task of a story) you need this code:

issueFunction in subtasksOf('component = "<component name>"')

 

Shalom

Joel

This query works in On-Premise but not on cloud, any leads?

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 13, 2021

@Megha Sinha , so that query requires Scriptrunner. Are you using scriptrunner in cloud?

No, we are not using script runner, Are there any alternatives

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 14, 2021

Can you articulate your precise goal? If it is exactly as specified by Joel then you cannot achieve OOTB. You will need some addon solution. I recommend continuing your search in the Community as well.

Tks @Joel Hofer 

This solution works for me!

Nenad S_
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!
Aug 31, 2023

@Joel Hofer 

This works great - just what I needed

0 votes
Joshi
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!
Aug 03, 2023

Not working, sub queries are not working in JIRA anymore

0 votes
Daniel Turczanski - JQL Search Extensions
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Sep 22, 2021 • edited

Hi @Joel Hofer ,

@Megha Sinhaasks how to get the same results in Jira Cloud. With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. Your use case is more dynamic than that.

Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service:

After you install the app, you can simply search:

component = "<component name>" OR issue in subtasksOfParentsInQuery("component = '<component name>'")

Make sure the check out the documentation.


I hope this helps!

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 14, 2020

Hi Joel, welcome to the Community. OOTB there isn’t a JQL to achieve your goal. However, what about placing the component into the Subtask? This would allow the following to work...

component = xxxx and type = sub-task

if this won’t work consider an addon, e.g. Scripting that has JQL functions that could meet your needs.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events