REST API - Problem with query URL
I can get a specific workitem usign REST API, but I had problem with queries.
I'm following this article: https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Querying_Work_Items The suggested query URL is: https://localhost:9443/jazz/oslc/contexts/_9BHm0EqVEd6HXO10niqZpg/workitems I think the "context" _9BHm0EqVEd6HXO10niqZpg is the Project Area ID. Is it true? I don't know for sure what the correct query URL, so I'm having some errors 406 (Not Acceptable), 400 (Bad Request), 404 in my tests. In cases without "context" like that bellow I don't having problems: https://localhost:9443/jazz/oslc/workitems/821.json |
2 answers
I'm almost certain the "context" is Project Area ID (the doc don't say nothing about that).
So, using my Project Area ID and workitems
What is that? |
Fixed!
How to get the correct URL is explained in session "Discovery" :P and my problem was that I used some elements of OSLC doc like that: ?oslc_cm.query=state="open" reference: http://open-services.net/bin/view/Main/CmQuerySyntaxV1?sortcol=table;table=up#Examples For RTC, the correct is: ?oslc_cm.query=rtc_cm:state="{open}" |
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.