Hello everyone, I am trying to show the parents of stories in a filter. I saw there are functions as :
issue in parentIssuesOf("")
issueFunction in epicsOf()
But they are not working for me, has anyone experienced this issue?
(The parents are linked by: Epic Link)
Hi @Raymundo Gutierrez Guerrero
The functions parentIssuesOf() and epicsOf() are ScriptRunner JQL functions, not native Jira. In current ScriptRunner docs, the function for returning parents is parentsOf(), not parentIssuesOf(), which is likely why your first query returned nothing. epicsOf() does exist and is correct, but it requires a valid subquery inside the parentheses, for example issueFunction in epicsOf("project = ABC AND resolution = unresolved"). An empty argument would also explain a silent no-result. It is also worth checking whether your instance has another app installed that defines functions with similar names, since Adaptavist support has flagged that function name conflicts between add-ons (for example with PowerScripts) can cause ScriptRunner JQL functions to silently return nothing.
On the native Jira Cloud side, Atlassian has rolled out the change where Epic Link and Parent Link are consolidated into the single parent field, and the parent JQL function now covers what epic-link, parent-link, and parentEpic used to do. So in pure native JQL on Cloud, parent in (PROJ-123, PROJ-124) returns the children of those parents, and to get the parent epics of a set of stories you would typically need a two-step approach issuetype = Epic AND key in (parentKeysFromYourStories).
If you confirm whether ScriptRunner is installed and try issueFunction in parentsOf("project = YOURPROJECT AND issuetype = Story"), that should give you the parents you are after. If it still returns nothing, your Jira admin can check the ScriptRunner Built-in Scripts page for function conflicts, and Atlassian Support or Adaptavist Support can take it from there.
Hope this help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.