JQL query : What is the query to get the same result (the output must be listed all subtasks)

MelvinDave February 12, 2024

Hi,

I would like to display all subtasks related to an issue as follows : Also, every new subtask (story) should be added to this structure using one parameter (component). 

IMG_8255.jpg

 

Here is the result I get below. The query I typed is : project = PROJECT AND issuetype = TYPE AND Key= ?x OR Key = ?XS

Thank you !

 

IMG_8253_2.jpg

1 answer

1 accepted

0 votes
Answer accepted
Adam Rypel _MoroSystems_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 12, 2024

Hi @MelvinDave 

You could use "parent" JQL field. With that you can return subtasks of certain issue.

If you want to return only subtasks with certain component, you can similarly use component field.

So you would use: "project = PROJECT AND parent = parentIssueKey AND component = component1"

Is that what you needed?

MelvinDave February 12, 2024

Thank you for your prompt reply. Unfortunately, it is not working.

Adam Rypel _MoroSystems_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 12, 2024

Are you getting some error? Could you share the error you are getting? 

MelvinDave February 12, 2024

It is actually empty. I want the same result as showed in the first picture.

Adam Rypel _MoroSystems_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 12, 2024

I see, are you surely using the correct issue key in "parent = issueKey" section? This should be the key of issue that is above those subtasks. For example parent = ABC-123.

Also check out whether the component part is working correctly. First try to search only for the subtasks without the component and when that is working, also try the component part.

MelvinDave February 12, 2024

Yes, it is still empty. I don't get it. I don't use component this time. 

MelvinDave February 12, 2024

I actually used this specific query to get the wrong result --> project = PROJECT AND issue type = sub-feature and Key = ?/

MelvinDave February 12, 2024

IMG_8258-2.jpg

Adam Rypel _MoroSystems_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 23, 2024

@MelvinDave Apologies, I missed your reply. Did you manage to solve the issue?

MelvinDave February 29, 2024

@Adam Rypel _MoroSystems_ Yes, I used the extender add-on.

Suggest an answer

Log in or Sign up to answer