Dynamic query to share for all the Team Areas dashboards
We would like to create a query to share for all the Team Areas dashboards, it has to use "Team Area" as variable. Idea is to try and use it in the Team Areas dashboard template inside the Process configuration. i.e when the dashboard is created for the first time, the widget should automatically show the respective team work items according to the query provided.
Can someone guide us here? We failed in our initial attempts...
(otherwise current solution would be to create individual query for each teams, and manually configure this in the widget, this really not efficient when you have more than 20 teams...)
Thank you.
One answer
Comments
Millard,
Your suggestion does not work when dashboards are designed in process configuration. Here the widgets can only consider queries from "Predefined Queries" list and Predefined Queries cannot have the dynamic values.
Please let me know if there is any way out to have dynamic values for predefined queries, this will already solve half of the problem, as you mentioned above.
Searching through the existing work items for "query pseudo variable" I found some interesting, likely related work items that seem to have been implemented (you may be able to suss something from these):
Comments
sam detweiler
Feb 20 '14, 10:04 a.m.I am not aware of any way to query dashboards or team areas. You can query workitems. and GET their team areas. but I don't think that is useful.. as the current gadgets don't have much extensibility
Millard Ellingsworth
FORUM ADMINISTRATOR / JAZZ DEVELOPER Feb 24 '14, 3:12 p.m.There are widgets that autopopulate on a new team dashboard that set the team area. I think one of the challenges in your situation is that to look for work items for a team, you are really querying against Filed Against (a work item category) and it is possible to associate more than one work item category with a team. So there is no way to automatically create an association when the dashboard is created.
Ratheesh Madathil
Feb 24 '14, 12:43 p.m.I dont think that associating more than one work item category with a team area could lead to any kind of trouble.
Because the basic query function still supports to query for work items against a team area.
Only challenge is to customize this query to a scope of filtering it for that "Team Area"