This seems to be one of the most ridiculous problems I have ever encountered. How can it even be hard (let alone impossible) to find all issues related to a specific EPIC without making the ugliest query ever?!
In order to find the epic issue (including its subtasks) along with its epic linked issues and their respective subtasks, I seem to have two alternatives:
issue = PROJ-1234 OR parent = PROJ-1234 OR "Epic Link" = PROJ-1234 OR issueFunction in subtasksOf("\"Epic Link\"=PROJ-1234")
Alternative 2 (which sucks since this query will also return issues that are linked using other link types)
issue = PROJ-1234 OR issueFunction in linkedIssuesOfAllRecursiveLimited("issue = PROJ-1234", 2)
I have gone through every forum thread imaginable and I don't understand why for example "parentEpic" or tempoEpicIssues() doesn't work. I think the former is not available for JIRA server and the latter you need developer permissions for.
You're right: The parentEpic() function is just on Cloud.
Your Alternative 1 query is almost correct, and it can be slightly improved like this:
key = PROJ-1234 OR "Epic Link" = PROJ-1234 OR issueFunction in subtasksOf("\"Epic Link\"=PROJ-1234")
Alternatively, you may save a filter named 'Epic' with this jql:
"Epic Link" = PROJ-1234
...so that you can use it in a nicer query like:
key = PROJ-1234 OR filter = Epic OR issueFunction in subtasksOf("filter = Epic")
Using JIRA v7.7.0 - no addins...
Type this into Advanced Search
issue = BIT-1230 OR parent = BIT-1230 OR "Epic Link" = BIT-1230 OR issueFunction in subtasksOf("\"Epic Link\"=BIT-1230")
Received this response...
Field 'issueFunction' does not exist or you do not have permission to view it.
What am I missing?
Hi Jason. I'm afraid there's no JQL way in Jira Server to get the subtasks of issues that belong to the specified epic without the help of a plugin.
Of course, there would be ways for getting them through SQL, by querying directly against the database, but that's usually considered a bad practice...
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