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:
There is written following statement:
Queries are run by appending the parameter ?oslc_cm.query=[query]
to the simpleQuery URL from the services discovery document:
Accepted 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
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?
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
Krzysztof Kaźmierczyk
Sep 18 '13, 7:15 a.m.any ideas?