Hi! I'm trying to get a count/list of sub-tasks in a dashboard, based on a field in the parent task. For example, all Tasks have a field called "Team" which is filled in like {Team 1, Team 2, Team 3, etc}. All of these Tasks have Sub-tasks, but the Sub-tasks don't have the "Team" field. I want to be able create a dynamic filter to select Team 1 in a dashboard based on the Tasks, and return all of the Sub-tasks associated with these tasks. Basically just be able to get a visual that shows something like "Team 1 has 6 sub-tasks"
I have access to Rich Filters and Scriptrunner, but can't add any more apps.
Good day, @meredith.poole
If you create an automation to fill the "Team" field on each Sub-Task based on the parent, wouldn't it work for you?
You could start setting it as a scheduled automation, to update existing sub-tasks, and then configure it so that whenever the sub-task is created or edited, this field is already populated based on the parent.
Or by any chance you can't have the Team field on the Sub-Task?
Yeah, I think that is what we are going to end up having to do. I was hoping to figure out a way with just the data already present. Thanks for the input!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In ScriptRunner's Enhanced Search you would just do:
issueFunction in subtasksOf("Team = 'Team 1'")
Unfortunately in Jira Cloud you can't use ScriptRunner's searches in normal JQL or for dashboards to the best of my knowledge.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
While this does work, there are lots of "teams" in my data, so it wouldn't be practical to create filters for all of them. I was hoping to be able to select the team interactively in the dashboard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @meredith.poole,
unfortunately, this is trickier than one might think; as a hierarchical query, it would really require some kind of "join" or "subquery", which isn't available in plain Jira/JQL.
A few directions forward:
If you want to run your search dynamically, without manually "stitching" two queries together, you'll need extra tooling:
Hope this helps,
Best,
Hannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to expand on the last point, this is how this would look in the app that my team and I are working on: JXL for Jira. Put simply, you'd create a sheet with all issues that are potentially relevant to you, enable the default issue hierarchy (that's just one click), and then use JXL filtering capabilities to narrow down to the issues that you care about:
(I'm using labels here, but it would work the same way with any other field.)
Once you have your list of issues, you can work on these directly in JXL (much like you'd do in e.g. Excel or Google Sheets), trigger various operations in Jira, or export them for further processing.
Any questions just let me know!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.