Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

filter

task

jira

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)?

like image 259
Shevek Avatar asked Mar 01 '11 10:03

Shevek


People also ask

How do I find the parent of a subtask in Jira?

For the parent-subtask issue, you can use the ParentIssueKey field (just add it to the appropriate screens). It will only show the project key of the parent issue. For the epic - subissues relation, you can see that from the epic link field. If not visible, then add it to the screens.

How do I show subtasks in Jira board?

You should go to board settings -> swimlanes and choose Stories. In this case subtasks will be under the parent.

Can tasks have subtasks?

But sometimes, a task has multiple components, or multiple contributors. You can't add another assignee to the same task—but you can create subtasks. Subtasks can be a powerful way to distribute work and split tasks into individual components—while staying connected to the overarching context of the parent task.


2 Answers

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.

like image 93
Francis Martens Avatar answered Oct 14 '22 17:10

Francis Martens


I have a solution that requires no plugins whatsoever, but some manual work that is much better than listing the tasks in the query itself:

Using the linkedIssues function, you can write a query like so

parent in linkedIssues("PROJ-1061") 

Now, link all the issues you want in this query to the PROJ-1061 and you're golden. You can do this in a bulk job, you can also add it as a trigger in a workflow potentially.

like image 45
NiRR Avatar answered Oct 14 '22 16:10

NiRR