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

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 ?oslc_cm.query=[query] to the simpleQuery URL from the services discovery document:


However I have no idea what simpleQuery URL is. How can I retrieve it from the server?

1 vote

Comments

any ideas?


Accepted answer

Permanent link
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

1 vote


5 other answers

Permanent link
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




3 votes


Permanent link
 I updated the Wiki page on Resource Oriented Work Item API with OSLC with details on how to obtain the simpleQuery URL.

3 votes


Permanent link
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

2 votes


Permanent link
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?

1 vote

Comments

Did you manage to get an answer for this ? Even I am running into similar issue 


Permanent link
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



1 vote

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
× 12,029
× 516

Question asked: Jun 04 '12, 10:33 a.m.

Question was seen: 16,430 times

Last updated: Sep 18 '13, 7:15 a.m.

Confirmation Cancel Confirm