JQL Trick and subtask



Hello !

I would like to get a list of issues with all subtask associated on each

Issue-1
subtask-2
subtask-3
subtask-4
Issue-6
subtask-12
subtask-32
subtask-44
Issue-61
subtask-121

I tried with the query
project = XXX AND issue in hasSubtasks() and issuetype = AAA
but I only get issuetype AAA and not subtask assiciated.

I don't know if it is possible, if yes, please tell me how.

5 answers

Does something like that work for you?

project = XXX and (issueFunction in hasSubtasks() or issuetype = Sub-task)

So you should get your wanted issues, but I fear you can not order them like you want to.

I get this message :

The JIRA server could not be contacted. This may be a temporary glitch or the server may be down.

I am sorry but I can not see any connection between your question and this message. Please make sure your server has no other severe problems.

0 vote

Fred, Can you try this?

(project = XXX AND issue in hasSubtasks() and issuetype = AAA) OR issue in parent(project = XXX AND issuetype = AAA)

Hello Jobin, sorry for the delay.

It does not work. :-(

Hey Fred, what is missing when you try this query?

on the second part "issue in parent(project = XXX AND issuetype = AAA)" I got this message "Error in the JQL Query: Expecting ')' or ',' but got '='. "

Can you try:

(project = XXX AND issue in hasSubtasks() and issuetype = AAA) OR issue in parent("project = XXX AND issuetype = AAA")

Hi Fred,

try:

project = XXX AND ((issue in hasSubtasks() and type = MAINTASKTYPE) OR issuetype = SUBTASKTYPE)

Hi Andre

thank you forthe request.

No error inthe query But I get issutype I dont' want which have no subtask.

Hi Andre

thank you forthe request.

No error inthe query But I get issutype I dont' want which have no subtask.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

850 views 2 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you