Filter to show sub tasks of a filtered list of parent tasks

Shevek picture Shevek · Mar 1, 2011 · Viewed 92.6k times · Source

I have a JIRA filter which returns all the fixes in a future release:

project = MyProject AND fixVersion = "1.1.1" and issuetype in standardIssueTypes() and status != Closed

All of these issues have Sub-Tasks which I want to have in a new filter result. They do not have the fixVersion set.

I have tried the parent filter but this only accepts Key or ID.

Is there any way I can write a filter to access these without manually using something like parent in (MyProject-1,MyProject-2,MyProject-3,MyProject-4,etc)?

Answer

Francis Martens picture Francis Martens · Mar 1, 2011

You can install the Craftforge JQL functions https://plugins.atlassian.com/plugin/details/31601

You then create a filter

project = MyProject AND fixVersion = "1.1.1" and issuetype in standardIssueTypes() and status != Closed

Call this filter for example 'parentIssues'

Using the JQL

issue in subtaskIssuesFromFilter("parentIssues")

will retrieve all relevant subtask issues.