-
Suggestion
-
Resolution: Fixed
-
None
NOTE: This suggestion is for JIRA Portfolio Server. Using JIRA Portfolio Cloud? See the corresponding suggestion.
Hi,
I have the following Hierarchy in portfolio.
Theme -> Initiative -> Epic ->Story
The Theme issue type has a custom field by which I want to query the Initiatives, Epics and Stories within the Theme that has a particular value for the custom field. Is this currently possible?
- is related to
-
JPOSERVER-1897 Filter all issues that contribute to a grand-parent issue
- Closed
-
JSWSERVER-24832 Parent link should behave in the same way as epic link (i.e. forming a link in the background)
- Gathering Interest
- relates to
-
JSWSERVER-25000 Parent Link JQL does not work with EMPTY keyword
-
- Long Term Backlog
-
-
JRACLOUD-88066 JQL support for Multi level Parent Link
- Gathering Interest
Hi @rchristian,
Thanks for the information. Are there plans to expand the capabilities of the childIssuesOf () JQL function? It'd be great to query all issues linked to ALL initiatives that live in a project dedicated to Portfolio items above the Epic hierarchy. For example, issuekey in childIssuesOf ("project = ABC") where the ABC project contains Initiatives, and the JQL returns all Epics, Stories, and Sub-tasks linked back to those Initiatives.
We can achieve this using four filters in Scriptrunner's JQL functions, but it'd be great if Portfolio's JQL could handle it in one.
JQL Via Scriptrunner
Filter 1 (Get Epics linked to parent Initiatives) - issueFunction in portfolioChildrenOf("project = ABC")
Filter 2 (Get Stories linked to those Epics) - issueFunction in linkedIssuesOfAll ("Filter 1")
Filter 3 (Get Sub-tasks linked to those Stories) - issueFunction in subtasksOf("Filter 2")
Filter 4 (Final) - issueFunction in linkedIssuesOfAll ("Filter 1") OR issueFunction in subtasksOf("Filter 2") ORDER BY Rank ASC
Best,
Cameron
cc @nriley1