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

How to get OSLC link for Work Item

Hi,

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

0 votes



2 answers

Permanent link
HI Chandan

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:
https://jazz.net/library/article/352
 http://www.ibm.com/developerworks/rational/library/rational-team-concert-oslc/

Regards
Shubjit

0 votes

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. 

Name: Content-Type
Value: application/rdf+xml

Name: oslc-core-version
Value: 2.0

Here is a screenshot
GET


Permanent link
If you're using a browser-based REST client such as Poster or RESTClient, log on CCM in the browser first, as Shubjit mentioned. Otherwise, you need to do log-on programmatically in your REST client and retain the logged on session (via cookies) all the way through. Note that CCM uses form authentication by default, and basic authentication will not work. I suggest you read the following articles.
https://jazz.net/library/article/1001
http://www.ibm.com/developerworks/rational/library/rational-team-concert-oslc/
(the work flow is exactly the same regardless the choice of programming/scripting languages)

0 votes

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.

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
× 1,221
× 516

Question asked: Apr 09 '15, 11:29 p.m.

Question was seen: 5,650 times

Last updated: Apr 13 '15, 3:47 a.m.

Confirmation Cancel Confirm