Search for categories using OSLC
Hi,
we need to search for category paths in EWM enviroment and want to do it with OSLC and it should respond fast.
To search for a category path you need to use the hierarchicalName attribute.
https://jazz.prod.de/ccm2/oslc/categories?oslc.select=*&oslc.where=rtc_cm:hierarchicalName="Level1Category/Level2Category"
But it responds with: Unknown attribute id
Any ideas how to solve that?
|
2 answers
Ralph Schoon (63.6k●3●36●46)
| answered Nov 11 '21, 3:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I am pretty sure that your URL encoding is incorrect. e.g. if I search for items of a specific work item type "defect", my query URI looks like
The important part being ?oslc.where=dcterms:type=%22defect%22
|
I don't know for sure, but perhaps rtc_cm:hierarchicalName is a computed property that is not part of the stored resource and is not available to OSLC query. You may need to use nested properties to access categories by title. Comments
Ralph Schoon
commented Nov 11 '21, 8:18 a.m.
| edited Nov 11 '21, 8:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This is the Json for a category: "rtc_cm:projectArea": { "rdf:resource": "https:\/\/elm.example.com:9443\/ccm\/oslc\/projectareas\/_8e5qfFpmEeukW7cqqDjAuA", "rdf:type": [{ "rdf:resource": "http:\/\/jazz.net\/xmlns\/prod\/jazz\/rtc\/cm\/1.0\/Project" } ] }, "prefixes": { "acc": "http:\/\/open-services.net\/ns\/core\/acc#", "rtc_cm": "http:\/\/jazz.net\/xmlns\/prod\/jazz\/rtc\/cm\/1.0\/", "rdf": "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#", "dcterms": "http:\/\/purl.org\/dc\/terms\/" }, "rtc_cm:archived": false, "acc:accessContext": { "rdf:resource": "https:\/\/elm.example.com:9443\/ccm\/acclist#_8e5qfFpmEeukW7cqqDjAuA" }, "dcterms:description": "", "dcterms:title": "Unassigned", "rdf:type": [{ "rdf:resource": "http:\/\/jazz.net\/xmlns\/prod\/jazz\/rtc\/cm\/1.0\/Category" } ], "rtc_cm:hierarchicalName": "Unassigned", "rdf:about": "https:\/\/elm.example.com:9443\/ccm\/resource\/itemOid\/com.ibm.team.workitem.Category\/_8s97oVpmEeukW7cqqDjAuA", "rtc_cm:depth": 0 } |
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.