Querying Work Items via OSLC
Hello I am trying to create new OSLC work item query. I am using instructions from https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Querying_Work_Items
There is written following statement:
Queries are run by appending the parameter |
Accepted answer
I solved it.
I ran https://localhost:9443/ccm/oslc/workitems/catalog to get list of all PAs including PA context. Rosa Naranjo selected this answer as the correct answer
|
5 other answers
Get the catalog https://jazzdev.torolab.ibm.com:9443/jazz/oslc/workitems/catalog Find your services URL <oslc_disc:services rdf:resource="https://jazzdev.torolab.ibm.com:9443/jazz/oslc/contexts/_Q2fMII8EEd2Q-OW8dr3S5w/workitems/services.xml"/> from there build the query (ex dc:type="defect") The query depends on the attributes of the workitems - check what is returned |
I updated the Wiki page on Resource Oriented Work Item API with OSLC with details on how to obtain the simpleQuery URL.
|
To list all queries you can do the following
https://myjazz.server.com:9443/ccm/oslc/queries.xml This will provide all the list of queries including Personal and Shared To execute a query you need to do the following https:///myjazz.server.com:9443/ccm/oslc/queries/_afdfaQCAPDiEeCdF7QTxWQU-g/rtc_cm:results where _afdfaQCAPDiEeCdF7QTxWQU-g is the ID of the query you want to execute. you will get this from the queries.xml Hope this helps Regards Karthik |
Does it mean, that to run the query using OSLC must I create and save it in RTC? Or there is any way to run OSLC query without creating it in RTC?
I just would like to display work item id and value of custom attribute called "update value" where custom attribute called "needs updating" is set to true. Is there any simple http get or post command for that? Comments
navneet kumar
commented Feb 11 '13, 3:32 p.m.
Did you manage to get an answer for this ? Even I am running into similar issue |
Hi,
I'd advise you to have a read at this article (based on OSLC CM v2.0 spec) : https://jazz.net/library/article/1001/#consuming_oslc_services It provides some convenient sample URLs, etc. you could start from. Regards, Stéphane |
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.
Comments
any ideas?