It's all about the answers!

Ask a question

Search for categories using OSLC


S. M. (113) | asked Nov 11 '21, 12:34 a.m.
edited Nov 11 '21, 12:35 a.m.
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



permanent link
Ralph Schoon (63.1k33646) | 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


permanent link
Jim Amsden (29337) | answered Nov 11 '21, 8:02 a.m.

 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


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.