How to get OSLC link for Work Item
I have a workitem running on my local jazz server. I need to get rdf format of the work item.
How to do it.
I tried by puting url etc in Rest Client. I am getting Html put indicating errors.
I need to get rdf format of a WI in Rest client. How to achieve it. Please let me know.
Regards
Chandan
2 answers
How about using the URL format below?
https://<host>:<port>/ccm/oslc/workitems/90
Where ccm is your RTC context root and 90 is the Work Item ID.
You can check the following URLs for additional information:
http://www.ibm.com/developerworks/rational/library/rational-team-concert-oslc/
Regards
Comments
Hi Shubjit
I tried its not working
https://localhost:9443/ccm/oslc/workitems/8
Even though i added the header Accept and OSLC core version 2.0 and basic authentication
Response
Status Code: 200 OK
Cache-Control: private
Content-Encoding: gzip
Content-Length: 1031
Content-Type: text/html;charset=UTF-8
Date: Fri, 10 Apr 2015 05:06:39 GMT
Expires: Thu, 01 Jan 1970 05:30:00 IST
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=06C24F7496F4DEA3BD65D59A6CD589D9; Path=/ccm/; Secure; HttpOnly JazzFormAuth=Form; Path=/ccm; Secure x-com-ibm -team-scenario=11541864-6722-44b8-be77-9d6ab3d8599f%3Bname%3DInitial+Page+Load%3Bextras%3D%2Fccm%2Fauthenticated%2Fidentity%2C1428642400263; Path=/
X-com-ibm-team-repository-web-auth-msg: authrequired
I need in rdf+xml format with OSLC version 2.0
Hi Chandan
Looks like an authentication issue. If for example you are using Firefox REST Client , You need to login to CLM on a different tab prior to running it on REST client
I tried this on Firefox with following Headers added.
Here is a screenshot
Comments
In addition, check the link formats in existing repositories. You will notice that links with the requirement number are usually workitem to work item links that are local to the repository. Other links use a different format using the work item UUID. Which one is used in which context can be found by creating the links in the tool and getting the data.