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 !! |
3 answers
![]() Is there a way to query defects for all the defined attributes 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 |
![]()
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 |
![]() Is there a way to get attributes value directly rather than getting No, it is either the references or a data query (which won't cover all cases). -- Regards, Patrick Jazz Work Item Team |