It's all about the answers!

Ask a question

work item statistics viewlet


Hadar Hawk (1882214) | asked Mar 11 '09, 9:37 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
The work item statistics viewlet requires a query, but it ignores the query when it displays statistics and shows information for ALL work items. It would be really handy to have it only show statistics for work items returned by the query.

4 answers



permanent link
Hadar Hawk (1882214) | answered Mar 11 '09, 9:40 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
From the Web interface, you can create queries that include all fields, but you can't display some of the fields and you can sort on even few fields.

For example, I wanted all work items related to my stories, so I can query on the parent work item fields, but I can only display the parent id and I can't sort on the parent id at all.

permanent link
Mike Pawlowski (6861) | answered Mar 11 '09, 11:08 a.m.
JAZZ DEVELOPER
RE: Comment #1

>> but it ignores the query when it displays statistics and shows information
>> for ALL work items. It would be really handy to have it only show
>> statistics for work items returned by the query.

The viewlet does the latter by design. To verify this, create a query in the Work Items Web UI and run it. Note the result count. Configure a Work Item Statistics viewlet with the same query and save. The result count in the viewlet title should match. Also, the tallies of each of the grouped parameters should add up to the total (unless the grouping parameter is "tags", because a work item can have many tags).

RE: Comment #2

I believe you are referring to the Work Items Web UI.
I will let someone from the Work Items team comment on this one.

permanent link
Patrick Streule (4.9k21) | answered Mar 13 '09, 4:37 a.m.
JAZZ DEVELOPER
From the Web interface, you can create queries that include all
fields, but you can't display some of the fields and you can sort on
even few fields.

For example, I wanted all work items related to my stories, so I can
query on the parent work item fields, but I can only display the
parent id and I can't sort on the parent id at all.

These are technical restrictions. As we show only a page of the whole
result set in the Web UI, local sorting would only sort a page. Sorting on
the repository is possible only within the limits of the database/query
model.

--
Regards,
Patrick
Jazz Work Item Team

permanent link
Hadar Hawk (1882214) | answered Mar 16 '09, 10:56 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
I used the same query in both a work item and a work item statistics viewlet and there should only be 4 work items in the statistics viewlet, but it shows all the work items in the repository. I will create a work item so I can attach an image. See Defect 74433.




RE: Comment #1

>> but it ignores the query when it displays statistics and shows information
>> for ALL work items. It would be really handy to have it only show
>> statistics for work items returned by the query.

The viewlet does the latter by design. To verify this, create a query in the Work Items Web UI and run it. Note the result count. Configure a Work Item Statistics viewlet with the same query and save. The result count in the viewlet title should match. Also, the tallies of each of the grouped parameters should add up to the total (unless the grouping parameter is "tags", because a work item can have many tags).

RE: Comment #2

I believe you are referring to the Work Items Web UI.
I will let someone from the Work Items team comment on this one.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.