It's all about the answers!

Ask a question

Querying workitems with all attributes with actual values


Vivek Gupta (5195) | asked Feb 16 '10, 11:15 a.m.
JAZZ DEVELOPER
Is there a way to query defects for all the defined attributes (defined and custom) and get the result with actual resolved values instead of references and handles.

Using SDK query wiki , we are able to extract all Defects but some parameters are referenced and need to resolved specifically .

Since we are working on bulk migration from CMVC to RTC and the volume of data is very huge , we are looking for a way to get all the defect information in RTC in one go something similar to what is available in RTC WorkItem view - a WI per row (not sure if that gets populated in one go or attribute by attribute ..)

Any pointers would help !!

3 answers



permanent link
Patrick Streule (4.9k21) | answered Feb 19 '10, 3:38 a.m.
JAZZ DEVELOPER
Is there a way to query defects for all the defined attributes
(defined and custom) and get the result with actual resolved values
instead of references and handles.

Using SDK query wiki , we are able to extract all Defects but some
parameters are referenced and need to resolved specifically .

Since we are working on bulk migration from CMVC to RTC and the volume
of data is very huge , we are looking for a way to get all the defect
information in RTC in one go something similar to what is available
in RTC WorkItem view - a WI per row (not sure if that gets populated
in one go or attribute by attribute ..)

You could take a look at
com.ibm.team.workitem.client.internal.util.ResolvedWorkItem, which
allows to to get a work item with all references resolved.

To some extent, a data query could also select the referenced values
directly from the repository, but that will bring you only half-way if
you need all attribute values.

--
Regards,
Patrick
Jazz Work Item Team

permanent link
abhishek aggarwal (6) | answered Feb 22 '10, 4:33 a.m.
I have used resolve method of ResolvedWorkItem but attributes returned by resolvedworkitem are in the form of proxies .

List<ResolvedWorkItem> resolvedWorkItems = ResolvedWorkItem.resolve(WorkItems, monitor);
List<IAttribute> iattr =resolvedWorkItems.get(0).getAttributes();

Is there a way to get attributes value directly rather than getting references

permanent link
Patrick Streule (4.9k21) | answered Feb 22 '10, 1:23 p.m.
JAZZ DEVELOPER
Is there a way to get attributes value directly rather than getting
references

No, it is either the references or a data query (which won't cover all
cases).

--
Regards,
Patrick
Jazz Work Item Team

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.