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. |
Accepted answer
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
Comments
Lakshmi krishnamurthy
commented Apr 26 '16, 3:16 p.m.
Awesome. That worked. Had to switch to curl within my python modules. But, it worked. Thank you.
|
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.