is there any built-in function to use jql in jql?


Please pay attention to the question as I'm aware that there are tons of 3rd party plugins (including those developed by me) able to do it. So the exact question is in regard of the default JIRA functionality without 3rd party plugins.


1) Get all the Epics:

type = Epic


2) Get all the issues belonging to a given Epic (ex: SPS-355)

"Epic Link" = SPS-255


But.. is it possible combine both into a single one? Something like:

"Epic Link" in { type = Epic }

guessing that would be a bracket operator \{...\} which would perform the internal JQL. Similarly:

"Epic Link" in jql("type = Epic")

Such basic jql function that takes a jql string as input param and executes it is really easy to create via plugins. But my question is: does it or something equivalent already exist?






1 answer

This widget could not be displayed.

There are kind-of built-in ways to achieve it.

You may save your query as a filter, ie. with name 'Epics' with this jql:

type = Epic

After that, you can use your saved filter in other queries like this:

resolution is EMPTY and filter in (Epics)

You can use either the filter name or the filter id, minding that using the filter name can produce different results in the case another shared filter from a different user had the same name, as it might return that other filter's query instead of yours.

By the way, in regard to epics, we have a new cool function in JIRA Cloud: parentEpic()

It is similar to "Epic Link", but it returns all subtasks that belong to any issues from the specified epic, besides of the standard issues (not-subtask type) in that epic.

Hope it helps.

Where parentEpic function is now? There is no such function reference by the link you provided (page Advanced searching - functions reference )

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

115 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you