Dear Atlassian Community,
We are currently working with Jira Plans using different board filters as issue sources. Specifically, we are pulling in a selection of issues from Project "A," including Initiatives, Epics, and Tasks.
However, we are facing a challenge:
Some Epics in Project A are linked (via the Parent Link field) to Initiatives that are part of other Jira projects. These Initiatives do not appear on the Roadmap because the filters only include issues from Project A and we are facing unassigned Epics in the Roadmap.
Our goal is to create a JQL query that dynamically retrieves all Initiatives from the other projects that are linked to Epics within Project A.
We've tried different approaches using the linkedIssues function in JQL, but failed. We would appreciate any guidance on how to construct a dynamic JQL query (preferably using ScriptRunner or another method) to achieve this. Our ideal outcome is to have the Roadmap display all relevant Initiatives from other projects that are linked to Epics from Project A.
Thank you in advance for your help!
Best regards,
Chris
Hi @Chris K
You could use the following function portfolioParentsOf
issueFunction in portfolioParentsOf("project = A and type = Epic") and type = Initiative
But in order to work with AR, I recommand to add filterring on the projects you are expecting to have Initiatives, otherwise you will reach the 100 project limit of AR.
Regards
Thank you for your quick response. This solution works just perfectly for our use case! :)
Kind regards,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Chris K ,
I’m Prosper, a support engineer at Appfire, and I’m here to help you.
Unfortunately natively, you’ll not be able to do it dynamically.
In the app where my team works, JQL Search Extensions for Jira, you can use this query, to find the initiatives in the project A:
issue in parentsOfIssuesInQuery("project='A' and type=Epic")
Or use this query below to get the initiative linked to epics in project A:
issue in linkedIssuesOfQuery("project='A' and type=Epic") and type = Initiative
Please contact our support if you have any other questions about this query.
We’ll be happy to help you!
Best regards,
Prosper.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your help! The provided solution by @Florian Bonniec solved the case for us, therefore we won't need the add-on. Thank you! :)
Kind regards,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.