My Jira project has 4 issue types (e.g. Product Specification), and 3 subtask types (e.g. PMO Task). Any of the 4 issue types can contain zero or more of any of the subtask types.
I'd like to create a filter to see all the subtasks of a given (subtask type, parent issue type) tuple.
E.g. I may want to see all the "PMO Task"s that have ever been created for "Product Specification"s (thus filtering out all the "PMO Task"s that have been created for, e.g. "Development Deliverable" parent tasks.
How do I do that?
Currently, it is not available inside JIRA. However, I have raised a JIRA request for this, which you can find here - JRA-38798
I would recommend that you do the following on the feature request ticket :
Please note that the implementation of new features and improvement requests falls under Atlassian's Implementation of New Features Policy.
You may use the ScriptRunner Plugin.
issueFunction in subtasksOf("sub query here returns all parent tasks")
But disclaimer says it will be paid plugin soon.
Another option thats already paid plugin is :
Thanks Vijay, practically how do I do that - do I just copy & paste the code you quoted into the JQL field? Or does issueFunction stand for something I need to fill in? It looks like a promising approach. I work in a midsize corporate, so don't control the plugins that are allowed, but it may already be installed.
To expands - this should be:
issueFunction in subtasksOf("issuetype = MyParentType") and issuetype = MySubTaskType
So the first clause will find all the subtasks of the particular parent type you care about, then filter further to the subtask type you care about.
Yes, you paste than in the advanced JQL editor.
NOTE: This post is purely my personal opinion and not an objective comparison of the plugins :-)
If you are to convince someone about a plugin solving your described issue I personally would recommend the ScriptRunner!
Two reasons actually:
The two other plugins mentioned are also good plugins. I have used them both with great result but they are not just as versatile as the ScriptRunner.
The closest I have come is an advanced filter with JQL that references the "parent" field, but that is a dead end because that field only contains the unique key of the parent task, not its type. Unless there's some way to look up the type based on the key (in a subquery), and then filter on that?
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG