How to find all categories which belongs to a team
I have a EWM (RTC) PA with hundreds of teams and categories. Some times a team must be removed due to a company re-organization. Before I archive the team, I have to make sure that all categories which belongs to this team are either archived or mapped to any other team. Therefore I'm looking for a possibility to see all categories and only theses categories which belongs to a specific team.
2 answers
"rtc_cm:projectArea": {
"rdf:resource": "https:\/\/<server>\/ccm\/oslc\/projectareas\/<project area ID>"
},
"dc:description": "",
"rtc_cm:archived": false,
"rdf:resource": "https:\/\/<server>\/ccm\/resource\/itemOid\/com.ibm.team.workitem.Category\/_d_Na0M8HEeu3pbGmws67-Q",
"dc:title": "BM3 CRD",
"rtc_cm:defaultTeamArea": {
"rdf:resource": "https:\/\/<server>\/ccm\/oslc\/teamareas\/_VhBiAGE0EeuS46GN6T1p0A"
},
"rtc_cm:teamAreas": null,
"rtc_cm:hierarchicalName": "Projects - Internal\/BLah\/Blah Blah\/BM3 CRD",
"rtc_cm:depth": 3
}
Comments
I was more looking for a kind of tool or widget instead of a description of principles. But anyway, I was able to extract the team IDs from the results. Just creating a script which collects all the results and extracts what I want to see is a problem for me.
Yes, that's what I mean. And it's very helpful.
<o:p> </o:p>
My answer is, that very few project areas I have seen so far have hundreds of teams and categories. So this is a highly custom use case. This probably also requires caching and other optimization to keep the system performant that was not available in the beginning.
I would write a Plain Java Client Library application that uses com.ibm.team.workitem.common.IWorkItemCommon.findCategoriesOfProcessArea(IProcessAreaHandle, ItemProfile<ICategory>, IProgressMonitor) to find the categories and to analyze whatever I need to be analyzed.