Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,533
Community Members
 
Community Events
165
Community Groups

JQL query to find child issues of Initiative from another project

Hello, 

 

We setup hierarchy between projects in order to follow:

- In the high level project (like a parent project)  theme / initiative

- In the second level product projects  (like a child project) with Epic / Story

In the high level project we add Theme and initiative at the macro level and in the childs projects we decline Epics / Story, etc ... linked to Initiative from parent project

On Epics, we use parent link to declare his parent from parent project

We use advanced roadmap to follow all tickets from "parents" & "child" project but currently I see in advanced all issues from both projects even if issues from child project are not linked to Initiative from parent

I need to have a JQL to find all Epics linked to Initiative from parent project like this:

"Parent Link" in ("project=DCOM")

The project DCOM is the parent project

I find the JQL on this link but it doesn't work (https://valiantys.com/fr/blog/atlassian-administration-fr/jql-guide-recherche-jira/ )

If try with "Parent Link" in (DCOM-35), I have all child issues

 

Is there a query to list all Epics related to an initiative from another project?

 

Thank you! :)

 

 

1 answer

I use this JQL,

issuefunction in portfolioParentsOf("key = DCOM-####")

This returns the ancestry of DCOM-####.  From there you could add on a pre-cursor function to instead return the descendants of the resulting ancestry like,

issuefunction in portfolioChildrenOf("issuefunction in portfolioParentsOf('key = DCOM-####')"

You could also populate the inner parenthetical with a more complex JQL like,

issuefunction in portfolioParentsOf("Project = DCOM and type = Epic")

but might overload your results.

All that said, I think the issuefunction call is part of the script runner plugin so without that I'm not sure how to do it.

Hi Aaron,

You're right issuefunction is provided by scriptrunner unfortunately, I don't have this apps on my instance :(

Like Aaron Gage likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

197 views 0 5
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you