I have a Project (P1) that uses advanced roadmaps and initiatives. We have another project (P2) that I want query tickets from. I'm querying sub-tasks from the P2 project on my roadmap, but they all show as "issues without parent".
I want to show the complete hierarchy of issue types on my roadmap - parents of parents, etc.
I need to find the sub-tasks in the P2 project and also their parents (stories) and their parents (epics) and their parents (initiatives) so that on my roadmap I won't have issues without parents and I can see the entire hierarchy of tickets that I'm interested in.
Is this possible with JQL, Enhanced Search or ScriptRunner?