It's all about the answers!

Ask a question

Report: joint data set to select by resolution state


Roman Smirak (3164933) | asked Aug 05 '09, 11:13 a.m.
Hello,

I have tried to create a report that should show attributes (summary, ...) of fixed workitems only (to exclude duplicate, invalid, etc.) The idea is to create joint data set + set up a filter.

But I have faild with creating joined data set.

Problem #1:
The table of WI states has "extened" id instead of WI table, see bellow:

Status:
STATE | STATE_GROUP | STATE_NAME
----------------------------------------------------------------------------
_mirLkB7qEd6HwOhml8ZEZAs3 | CLOSED_STATES | Resolved
_M1ZDIEX8Ed6oBPSG_x_KcgsConsultancy.state.s3 | CLOSED_STATES | Resolved

I have only idea: to "shorten" the States.STATE but I don't know if id "extenssion" is the same width all the time.

Work Items:
SUMMARY | CATEGORY_NAME | WI_TYPE | STATE_NAME | RESOLUTION | ...
-----------------------------------------------------------------------------------------------------------------------
Process, ... | Internal | task | 3 | 1 | ...
ASM centre ... | Support | consultancy | Consultancy.state.s3 | Consultancy.resolution.r2 | ...

Problem #2:
Where (in which table) can I find the resolution name?


Thanks you for any ideas :-)

13 answers



permanent link
Rafik Jaouani (5.0k16) | answered Aug 05 '09, 11:30 a.m.
JAZZ DEVELOPER
Use the LIVE_WORKITEM_CNT table.

WORKITEM_STATES is used for trend reports like open vs Closed and usually has a lot of duplicated rows, is slow and does not store all the work item fields.

LIVE_WORKITEM_CNT is a live table meaning it gets its data from the repository as opposed to the data warehouse. So it shoudl give you more up to date results.

permanent link
Roman Smirak (3164933) | answered Aug 05 '09, 12:26 p.m.
Yes, we are using LIVE_WORKITEM_CNT

It contains Resolution column that seems to be an id (1, consultancy.resolution.r2)

Should we filter out the resolved as invalid by the id or?

Roman

Use the LIVE_WORKITEM_CNT table.

WORKITEM_STATES is used for trend reports like open vs Closed and usually has a lot of duplicated rows, is slow and does not store all the work item fields.

LIVE_WORKITEM_CNT is a live table meaning it gets its data from the repository as opposed to the data warehouse. So it shoudl give you more up to date results.

permanent link
Rafik Jaouani (5.0k16) | answered Aug 06 '09, 9:33 a.m.
JAZZ DEVELOPER
Problem 1: Yes the size of the id extension is fixed. BTW, the id extension is the project area's item id.
Problem 2: Yes you could use the the resolution ids. Unless you intend to present those to the user. In that case you could use the new Live table named ENUMERATIONS to map the ids to the names. The ENUMERATIONS table is only available in 2.0.

permanent link
Roman Smirak (3164933) | answered Aug 06 '09, 11:34 a.m.
Hi Rafik,

thanks for your answer but I cannot find any ENUMERATIONS table. We use 2.0 release.

Or is there any other way to learn the id's?


Roman

permanent link
James Moody (3.3k24) | answered Aug 06 '09, 4:08 p.m.
JAZZ DEVELOPER
On 8/6/2009 11:38 AM, roman.smirak wrote:
Hi Rafik,

thanks for your answer but I cannot find any ENUMERATIONS table.
We use 2.0 release.

Or is there any other way to learn the id's?


Roman


Hi Roman,

I see the ENUMERATIONS table in the WORKITEMS_SNAPSHOT in 2.0. (Note
it's a live view on the database, so it doesn't actually exist as a
table in the data warehouse, although the BIRT data sets treat it as
one). Attached is a screenshot from my data warehouse admin web ui. Let
me know if you can't find it.

james
RTC Reports Team Lead

permanent link
Rafik Jaouani (5.0k16) | answered Aug 06 '09, 6:19 p.m.
JAZZ DEVELOPER
Check the following two part video:
http://jazz.net/library/video/288
http://jazz.net/library/video/289

It has an example of how to use the ENUMERATIONS data set.

permanent link
Roman Smirak (3164933) | answered Aug 07 '09, 4:23 a.m.
In the video you call Total.count() - is that mandatory?

Because we are getting Complexity, Priority, Severity enumerations only...

Is that the reason?

Roman

permanent link
Roman Smirak (3164933) | answered Aug 07 '09, 4:38 a.m.
Total.count() returns 27 which is the count of Complexity, Priority & Severity items... No Resolution found.


What is missing?

Roman

permanent link
Roman Smirak (3164933) | answered Aug 07 '09, 5:44 a.m.
Note that we are using SCRUM template.

permanent link
Rafik Jaouani (5.0k16) | answered Aug 07 '09, 7:17 a.m.
JAZZ DEVELOPER
You need to call Total.count() to force BIRT to fetch all rows. Not doing so, BIRT will only fetch the first row.

I am looking into the issue of resolution enums not fetched. Expect a response very soon.

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.