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

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?

0 votes



2 answers

Permanent link

 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

0 votes


Permanent link

 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.

0 votes

Comments

 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 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
× 516
× 457
× 62
× 17

Question asked: Nov 11 '21, 12:34 a.m.

Question was seen: 1,682 times

Last updated: Nov 11 '21, 8:18 a.m.

Confirmation Cancel Confirm