Forums

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

JQL find subtask of child issues

PEGE
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 30, 2023

Is is posible to combine te JQL issue function issueFunction in portfolioChildrenOf and issueFunction issueFunction in subtasksOf?

 

Explanation:

We have an issuetype initiative and we have an issuetype business epic. Business epics are child issues of the initiatives. We've created sub-tasks which are linked to the business-epics.

What I'm trying to achieve is to make a list of sub-tasks when the key of the initiative is the I only information I have.

It has to be a JQL solution (not scriptrunner) because I need to use te query in a Jira dashboard.

I've tried diffrent ways nesting the JQL's (for one example see below) but that didn't work.

issueFunction in subtasksOf("issueFunction in portfolioChildrenOf("key=Initiative-1")")

Is this even posible and has anyone an idea how to achieve this?

1 answer

1 accepted

0 votes
Answer accepted
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 30, 2023

Hi @PEGE 

 

Yes you can use any JQL as a sub-query including issueFunction.

If you are looking to have all subtask under a Business Epic that is linked to Initative-1 you can use:

issueFunction in subtasksOf("issueFunction in portfolioChildrenOf('key=Initiative-1')")

Make sure to use ' and not " in the sub query or you will have to escape them using \"

 

Reagdrs

PEGE
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 31, 2023

Hi @Florian Bonniec ,

Thanks a lot!! It worked! 

Spend so much time on this but couldn't get is to work because of that ". 

Suggest an answer

Log in or Sign up to answer