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

Getting a 401 Not Authorization Error while attempting to query a work item in JazzHub project

I am attempting to use the OSLC REST APIs to query a work item within a project I've setup using JazzHub and Track & Plan in Bluemix. My login attempt succeeds but when I attempt to query a work item using this

http://hub.jazz.net/ccm34/resource/itemName/com.ibm.team.workitem.WorkItem/123456

The only parameters I am passing are
{'OSLC-Core-Version': '2.0'}
{'Content-Type':'application/json'}

The same API works fine when I access a RTC Server.  Wonder what might be wrong with this logic given that it works against our RTC servers.


0 votes


Accepted answer

Permanent link
Use your jazz.net alias with your IBM ID password. This works for me:

curl https://hub.jazz.net/ccm34/resource/itemName/com.ibm.team.workitem.WorkItem/1168 -H "Accept: application/json" -H "OSLC-Core-Version: 2.0" -i -L -u ryehle:<my_ibm_id_password>
Lakshmi krishnamurthy selected this answer as the correct answer

0 votes

Comments

Awesome. That worked. Had to switch to curl within my python modules. But, it worked. Thank you.

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
× 10,944
× 382

Question asked: Apr 26 '16, 10:56 a.m.

Question was seen: 2,346 times

Last updated: Apr 26 '16, 3:16 p.m.

Confirmation Cancel Confirm