Search code examples
jirajql

JQL query get subtasks under issue in specific epic (Jira Server)


I have a specific epic where I want to see all direct issues and their subtasks from. The epic contains a multitude of issues and those issues all have a list of subtasks. How can I create a JQL for this?

I've tried multiple options, however those only work in Jira Cloud and not in Jira Server 9.12 which our company uses. I'd eventually want to save this query as a filter to create a dashboard and keep track of all the work that is done inside the epic.

I hope someone can help me, thanks!

  • Tjeu

Solution

  • Eventually I came to a solution myself by creating three filters;

    • Get all issues in a specific epic (1234)

      "Epic Link" = PROJECT-00001

    • Get all subtasks under issues that have a specific epic (5678)

      issueFunction in subtasksOf("filter = 1234")

    • Get all the issues and subtasks under a specific epic

      filter = 1234 OR filter = 5678