Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Querying workitems with all attributes with actual values

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 !!

0 votes



3 answers

Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Feb 16 '10, 11:15 a.m.

Question was seen: 5,340 times

Last updated: Feb 16 '10, 11:15 a.m.

Confirmation Cancel Confirm